#182771#182771
#182771 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.128 H 268.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #182771 |
|---|---|
| RGB | rgb(24, 39, 113) |
| HSL | hsl(230, 65%, 27%) |
| HSV | hsv(230, 79%, 44%) |
| CMYK | cmyk(78.8%, 65.5%, 0%, 55.7%) |
| CIE-LAB | lab(19.38, 22.60, -44.44) |
| CIE-LCH | lch(19.38, 49.85, 296.96°) |
| OKLab | oklab(31.38% -0.0028 -0.1284) |
| OKLCH | oklch(31.38% 0.128 268.7) |
| XYZ | xyz(4.0818, 2.8370, 15.9521) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.47
Marine
#042E60
ΔE00 5.99
Royal
#0C1793
ΔE00 7.46
Navy Blue
#1B2A4A
ΔE00 8.24
Marine Blue
#01386A
ΔE00 8.30
Darkblue (survey)
#030764
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#182771 #716218
analogous
#185471 #182771 #361871
triadic
#182771 #711827 #277118
tetradic
#182771 #711854 #716218 #187136
square
#182771 #711854 #716218 #187136
split-complementary
#182771 #713618 #547118
monochromatic
#050919 #0D163F #182771 #2338A3 #304CD3
Accessibility & contrast
On white
13.40
#182771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#182771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #182771
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##182771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##182771 | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #182771; /* rgb */ color: rgb(24, 39, 113); /* oklch */ color: oklch(31.4% 0.128 268.7);
Tailwind
colors: {
custom: {
50: '#64619b',
500: '#182771',
950: '#000000',
},
}SCSS
$custom: #182771; $custom-light: #64619b; $custom-dark: #000000;
JSON
{
"hex": "#182771",
"rgb": {
"r": 24,
"g": 39,
"b": 113
},
"hsl": {
"h": 229.888,
"s": 64.964,
"l": 26.863
},
"oklch": {
"l": 0.3138,
"c": 0.12848,
"h": 268.7
},
"luminance": 0.02837
}Semantic roles & 50–950 ramp
primary
#182771
secondary
#A6953E
accent
#CC40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E