#181771#181771
#181771 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.147 H 272.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).
Color values
| HEX | #181771 |
|---|---|
| RGB | rgb(24, 23, 113) |
| HSL | hsl(241, 66%, 27%) |
| HSV | hsv(241, 80%, 44%) |
| CMYK | cmyk(78.8%, 79.6%, 0%, 55.7%) |
| CIE-LAB | lab(15.48, 33.19, -50.85) |
| CIE-LCH | lch(15.48, 60.72, 303.13°) |
| OKLab | oklab(28.56% 0.0064 -0.1472) |
| OKLCH | oklch(28.56% 0.147 272.5) |
| XYZ | xyz(3.6627, 1.9988, 15.8124) |
| Luminance | 0.0200 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.59
Dark Royal Blue
#02066F
ΔE00 3.62
Darkblue (survey)
#030764
ΔE00 3.88
Deep Blue
#040273
ΔE00 4.28
Navy
#000080
ΔE00 4.98
Royal
#0C1793
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181771 #707117
analogous
#174371 #181771 #451771
triadic
#181771 #711817 #177118
tetradic
#181771 #711743 #707117 #177145
square
#181771 #711743 #707117 #177145
split-complementary
#181771 #714517 #437117
monochromatic
#050519 #0D0D3E #181771 #2321A4 #302ED4
Accessibility & contrast
On white
15.00
#181771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#181771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181771
15.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181771 | 1.00 | 15.00 | 1.40 | 15.00 |
| #FFFFFF | 15.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #181771; /* rgb */ color: rgb(24, 23, 113); /* oklch */ color: oklch(28.6% 0.147 272.5);
Tailwind
colors: {
custom: {
50: '#66559b',
500: '#181771',
950: '#000000',
},
}SCSS
$custom: #181771; $custom-light: #66559b; $custom-dark: #000000;
JSON
{
"hex": "#181771",
"rgb": {
"r": 24,
"g": 23,
"b": 113
},
"hsl": {
"h": 240.667,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.28563,
"c": 0.14731,
"h": 272.5
},
"luminance": 0.01999
}Semantic roles & 50–950 ramp
primary
#181771
secondary
#A5A73D
accent
#E93FE7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E