#181C7F#181C7F
#181C7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.160 H 270.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #181C7F |
|---|---|
| RGB | rgb(24, 28, 127) |
| HSL | hsl(238, 68%, 30%) |
| HSV | hsv(238, 81%, 50%) |
| CMYK | cmyk(81.1%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(18.17, 35.20, -55.38) |
| CIE-LCH | lch(18.17, 65.62, 302.44°) |
| OKLab | oklab(30.95% 0.0016 -0.1604) |
| OKLCH | oklch(30.95% 0.16 270.6) |
| XYZ | xyz(4.6214, 2.5565, 20.3244) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.40
Royal
#0C1793
ΔE00 3.22
Dark Royal Blue
#02066F
ΔE00 5.01
Navy
#000080
ΔE00 5.23
Darkblue
#00008B
ΔE00 5.25
Deep Blue
#040273
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181C7F #7F7B18
analogous
#18507F #181C7F #48187F
triadic
#181C7F #7F181C #1C7F18
tetradic
#181C7F #7F1850 #7F7B18 #187F48
square
#181C7F #7F1850 #7F7B18 #187F48
split-complementary
#181C7F #7F4818 #507F18
monochromatic
#05061A #0E114C #181C7F #2227B2 #383ED9
Accessibility & contrast
On white
13.89
#181C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#181C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181C7F
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181C7F | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 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: #181c7f; /* rgb */ color: rgb(24, 28, 127); /* oklch */ color: oklch(30.9% 0.160 270.6);
Tailwind
colors: {
custom: {
50: '#6959a5',
500: '#181c7f',
950: '#000000',
},
}SCSS
$custom: #181c7f; $custom-light: #6959a5; $custom-dark: #000000;
JSON
{
"hex": "#181c7f",
"rgb": {
"r": 24,
"g": 28,
"b": 127
},
"hsl": {
"h": 237.67,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30949,
"c": 0.1604,
"h": 270.6
},
"luminance": 0.02557
}Semantic roles & 50–950 ramp
primary
#181C7F
secondary
#B3AF3F
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F