#18237E#18237E
#18237E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.151 H 269.5°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #18237E |
|---|---|
| RGB | rgb(24, 35, 126) |
| HSL | hsl(234, 68%, 29%) |
| HSV | hsv(234, 81%, 49%) |
| CMYK | cmyk(81%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(19.65, 30.42, -52.31) |
| CIE-LCH | lch(19.65, 60.51, 300.18°) |
| OKLab | oklab(31.97% -0.0013 -0.1515) |
| OKLCH | oklch(31.97% 0.152 269.5) |
| XYZ | xyz(4.7423, 2.9021, 20.0448) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.23
Royal
#0C1793
ΔE00 4.57
Dark Royal Blue
#02066F
ΔE00 6.75
Darkblue
#00008B
ΔE00 7.19
Navy
#000080
ΔE00 7.22
Deep Blue
#040273
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18237E #7E7318
analogous
#18567E #18237E #40187E
triadic
#18237E #7E1823 #237E18
tetradic
#18237E #7E1856 #7E7318 #187E40
square
#18237E #7E1856 #7E7318 #187E40
split-complementary
#18237E #7E4018 #567E18
monochromatic
#05071A #0E154B #18237E #2231B1 #3749D9
Accessibility & contrast
On white
13.29
#18237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#18237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18237E
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18237E | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #18237e; /* rgb */ color: rgb(24, 35, 126); /* oklch */ color: oklch(32.0% 0.151 269.5);
Tailwind
colors: {
custom: {
50: '#685ea4',
500: '#18237e',
950: '#000000',
},
}SCSS
$custom: #18237e; $custom-light: #685ea4; $custom-dark: #000000;
JSON
{
"hex": "#18237e",
"rgb": {
"r": 24,
"g": 35,
"b": 126
},
"hsl": {
"h": 233.529,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.31971,
"c": 0.1515,
"h": 269.5
},
"luminance": 0.02903
}Semantic roles & 50–950 ramp
primary
#18237E
secondary
#B2A63F
accent
#D83DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F