#181B7E#181B7E
#181B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.160 H 270.8°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).
Color values
| HEX | #181B7E |
|---|---|
| RGB | rgb(24, 27, 126) |
| HSL | hsl(238, 68%, 29%) |
| HSV | hsv(238, 81%, 49%) |
| CMYK | cmyk(81%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(17.85, 35.44, -55.29) |
| CIE-LCH | lch(17.85, 65.67, 302.66°) |
| OKLab | oklab(30.68% 0.0022 -0.1601) |
| OKLCH | oklch(30.68% 0.16 270.8) |
| XYZ | xyz(4.5332, 2.4839, 19.9751) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.23
Royal
#0C1793
ΔE00 3.26
Dark Royal Blue
#02066F
ΔE00 4.75
Navy
#000080
ΔE00 5.02
Darkblue
#00008B
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181B7E #7E7B18
analogous
#184E7E #181B7E #48187E
triadic
#181B7E #7E181B #1B7E18
tetradic
#181B7E #7E184E #7E7B18 #187E48
square
#181B7E #7E184E #7E7B18 #187E48
split-complementary
#181B7E #7E4818 #4E7E18
monochromatic
#05061A #0E104B #181B7E #2226B1 #373CD9
Accessibility & contrast
On white
14.03
#181B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#181B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181B7E
14.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181B7E | 1.00 | 14.03 | 1.50 | 14.03 |
| #FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #181b7e; /* rgb */ color: rgb(24, 27, 126); /* oklch */ color: oklch(30.7% 0.160 270.8);
Tailwind
colors: {
custom: {
50: '#6959a5',
500: '#181b7e',
950: '#000000',
},
}SCSS
$custom: #181b7e; $custom-light: #6959a5; $custom-dark: #000000;
JSON
{
"hex": "#181b7e",
"rgb": {
"r": 24,
"g": 27,
"b": 126
},
"hsl": {
"h": 238.235,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30683,
"c": 0.16011,
"h": 270.8
},
"luminance": 0.02484
}Semantic roles & 50–950 ramp
primary
#181B7E
secondary
#B2AF3F
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F