#181B7F#181B7F
#181B7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 270.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #181B7F |
|---|---|
| RGB | rgb(24, 27, 127) |
| HSL | hsl(238, 68%, 30%) |
| HSV | hsv(238, 81%, 50%) |
| CMYK | cmyk(81.1%, 78.7%, 0%, 50.2%) |
| CIE-LAB | lab(17.96, 35.80, -55.73) |
| CIE-LCH | lch(17.96, 66.23, 302.71°) |
| OKLab | oklab(30.8% 0.002 -0.1614) |
| OKLCH | oklch(30.8% 0.161 270.7) |
| XYZ | xyz(4.5981, 2.5098, 20.3167) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.38
Royal
#0C1793
ΔE00 3.11
Dark Royal Blue
#02066F
ΔE00 4.80
Navy
#000080
ΔE00 4.98
Darkblue
#00008B
ΔE00 5.01
Deep Blue
#040273
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181B7F #7F7C18
analogous
#184F7F #181B7F #48187F
triadic
#181B7F #7F181B #1B7F18
tetradic
#181B7F #7F184F #7F7C18 #187F48
square
#181B7F #7F184F #7F7C18 #187F48
split-complementary
#181B7F #7F4818 #4F7F18
monochromatic
#05051A #0E104C #181B7F #2226B2 #383DD9
Accessibility & contrast
On white
13.98
#181B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#181B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181B7F
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181B7F | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #181b7f; /* rgb */ color: rgb(24, 27, 127); /* oklch */ color: oklch(30.8% 0.161 270.7);
Tailwind
colors: {
custom: {
50: '#6959a5',
500: '#181b7f',
950: '#000000',
},
}SCSS
$custom: #181b7f; $custom-light: #6959a5; $custom-dark: #000000;
JSON
{
"hex": "#181b7f",
"rgb": {
"r": 24,
"g": 27,
"b": 127
},
"hsl": {
"h": 238.252,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30801,
"c": 0.1614,
"h": 270.7
},
"luminance": 0.0251
}Semantic roles & 50–950 ramp
primary
#181B7F
secondary
#B3B03F
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F