#18227E#18227E
#18227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.153 H 269.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #18227E |
|---|---|
| RGB | rgb(24, 34, 126) |
| HSL | hsl(234, 68%, 29%) |
| HSV | hsv(234, 81%, 49%) |
| CMYK | cmyk(81%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(19.41, 31.07, -52.71) |
| CIE-LCH | lch(19.41, 61.18, 300.52°) |
| OKLab | oklab(31.8% -0.0009 -0.1526) |
| OKLCH | oklch(31.8% 0.153 269.7) |
| XYZ | xyz(4.7133, 2.8441, 20.0352) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.02
Royal
#0C1793
ΔE00 4.35
Dark Royal Blue
#02066F
ΔE00 6.47
Darkblue
#00008B
ΔE00 6.91
Navy
#000080
ΔE00 6.93
Deep Blue
#040273
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18227E #7E7418
analogous
#18557E #18227E #41187E
triadic
#18227E #7E1822 #227E18
tetradic
#18227E #7E1855 #7E7418 #187E41
square
#18227E #7E1855 #7E7418 #187E41
split-complementary
#18227E #7E4118 #557E18
monochromatic
#05071A #0E144B #18227E #2230B1 #3747D9
Accessibility & contrast
On white
13.38
#18227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#18227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18227E
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18227E | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18227e; /* rgb */ color: rgb(24, 34, 126); /* oklch */ color: oklch(31.8% 0.153 269.7);
Tailwind
colors: {
custom: {
50: '#685da4',
500: '#18227e',
950: '#000000',
},
}SCSS
$custom: #18227e; $custom-light: #685da4; $custom-dark: #000000;
JSON
{
"hex": "#18227e",
"rgb": {
"r": 24,
"g": 34,
"b": 126
},
"hsl": {
"h": 234.118,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.31799,
"c": 0.15264,
"h": 269.7
},
"luminance": 0.02845
}Semantic roles & 50–950 ramp
primary
#18227E
secondary
#B2A73F
accent
#DA3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F