#18227F#18227F
#18227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 269.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #18227F |
|---|---|
| RGB | rgb(24, 34, 127) |
| HSL | hsl(234, 68%, 30%) |
| HSV | hsv(234, 81%, 50%) |
| CMYK | cmyk(81.1%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(19.52, 31.45, -53.16) |
| CIE-LCH | lch(19.52, 61.77, 300.61°) |
| OKLab | oklab(31.91% -0.001 -0.154) |
| OKLCH | oklch(31.91% 0.154 269.6) |
| XYZ | xyz(4.7782, 2.8700, 20.3767) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 4.22
Dark Royal Blue
#02066F
ΔE00 6.48
Darkblue
#00008B
ΔE00 6.83
Navy
#000080
ΔE00 6.88
Deep Blue
#040273
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18227F #7F7518
analogous
#18567F #18227F #42187F
triadic
#18227F #7F1822 #227F18
tetradic
#18227F #7F1856 #7F7518 #187F42
square
#18227F #7F1856 #7F7518 #187F42
split-complementary
#18227F #7F4218 #567F18
monochromatic
#05071A #0E144C #18227F #2230B2 #3848D9
Accessibility & contrast
On white
13.34
#18227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#18227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18227F
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18227F | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18227f; /* rgb */ color: rgb(24, 34, 127); /* oklch */ color: oklch(31.9% 0.154 269.6);
Tailwind
colors: {
custom: {
50: '#695da5',
500: '#18227f',
950: '#000000',
},
}SCSS
$custom: #18227f; $custom-light: #695da5; $custom-dark: #000000;
JSON
{
"hex": "#18227f",
"rgb": {
"r": 24,
"g": 34,
"b": 127
},
"hsl": {
"h": 234.175,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.31908,
"c": 0.15398,
"h": 269.6
},
"luminance": 0.02871
}Semantic roles & 50–950 ramp
primary
#18227F
secondary
#B3A83F
accent
#DA3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F