#181B81#181B81
#181B81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.164 H 270.6°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #181B81 |
|---|---|
| RGB | rgb(24, 27, 129) |
| HSL | hsl(238, 69%, 30%) |
| HSV | hsv(238, 81%, 51%) |
| CMYK | cmyk(81.4%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(18.20, 36.50, -56.61) |
| CIE-LCH | lch(18.20, 67.35, 302.81°) |
| OKLab | oklab(31.04% 0.0016 -0.1639) |
| OKLCH | oklch(31.04% 0.164 270.6) |
| XYZ | xyz(4.7297, 2.5625, 21.0100) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.68
Royal
#0C1793
ΔE00 2.82
Darkblue
#00008B
ΔE00 4.86
Dark Royal Blue
#02066F
ΔE00 4.92
Navy
#000080
ΔE00 4.93
Deep Blue
#040273
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181B81 #817E18
analogous
#184F81 #181B81 #4A1881
triadic
#181B81 #81181B #1B8118
tetradic
#181B81 #81184F #817E18 #18814A
square
#181B81 #81184F #817E18 #18814A
split-complementary
#181B81 #814A18 #4F8118
monochromatic
#05051A #0E104D #181B81 #2226B5 #393EDA
Accessibility & contrast
On white
13.88
#181B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#181B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181B81
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181B81 | 1.00 | 13.88 | 1.51 | 13.88 |
| #FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #181b81; /* rgb */ color: rgb(24, 27, 129); /* oklch */ color: oklch(31.0% 0.164 270.6);
Tailwind
colors: {
custom: {
50: '#6a59a7',
500: '#181b81',
950: '#000000',
},
}SCSS
$custom: #181b81; $custom-light: #6a59a7; $custom-dark: #000000;
JSON
{
"hex": "#181b81",
"rgb": {
"r": 24,
"g": 27,
"b": 129
},
"hsl": {
"h": 238.286,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.31036,
"c": 0.16395,
"h": 270.6
},
"luminance": 0.02563
}Semantic roles & 50–950 ramp
primary
#181B81
secondary
#B5B240
accent
#E63CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F