Medium Blue
Hex #0000CD, rgb(0 0 205). A blue CSS named color.
Open in palette generatorMedium Blue color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Medium Blue
Medium Blue is a dark vivid blue with the hex code #0000CD. In RGB it is made of 0 red, 0 green and 205 blue; in HSL its hue is 240°, with 100% saturation and 40% lightness. Its perceptual lightness (OKLCH L) is 38.3%.
It is a CSS named color, so you can write "mediumblue" anywhere CSS accepts a color. Against white it has a contrast ratio of 11.16:1 and against black 1.88:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Medium Blue mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Medium Blue 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Medium Blue
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Split complementary
Monochromatic
Contrast and readability
WCAG 2 contrast of Medium Blue with white and black. The readable text color on Medium Blue is white.
On white11.16:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 92
On black1.88:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc -10
Test any pair in the contrast checker.
Color blindness preview
How Medium Blue appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#0046D2
- Deuteranopia#002FCA
- Tritanopia#005577
- Protanomaly#003AD0
- Deuteranomaly#002BCB
- Tritanomaly#0036AD
- Achromatopsia#3B3B3B
Colors similar to Medium Blue
The closest named colors by perceptual difference (OKLab).
Use Medium Blue in CSS and Tailwind
.medium-blue {
color: mediumblue; /* #0000CD */
background-color: rgb(0 0 205);
border-color: oklch(38.3% 0.266 264.1);
}/* Tailwind CSS v4: bg-medium-blue-500, text-medium-blue-700... */
@theme {
--color-medium-blue-50: #F8FAFF;
--color-medium-blue-100: #E6EEFF;
--color-medium-blue-200: #CCDDFF;
--color-medium-blue-300: #A4C2FF;
--color-medium-blue-400: #6F9CFF;
--color-medium-blue-500: #4C82FF;
--color-medium-blue-600: #2C67FF;
--color-medium-blue-700: #033DFF;
--color-medium-blue-800: #002CDA;
--color-medium-blue-900: #0000CD;
--color-medium-blue-950: #000053;
}
<!-- or the exact color, no config -->
<div class="bg-[#0000CD] text-[#FFFFFF]">…</div>