#1F1B8A#1F1B8A
#1F1B8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.173 H 272.7°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1B8A |
|---|---|
| RGB | rgb(31, 27, 138) |
| HSL | hsl(242, 67%, 32%) |
| HSV | hsv(242, 80%, 54%) |
| CMYK | cmyk(77.5%, 80.4%, 0%, 45.9%) |
| CIE-LAB | lab(19.68, 40.11, -59.82) |
| CIE-LCH | lch(19.68, 72.02, 303.84°) |
| OKLab | oklab(32.5% 0.0081 -0.1731) |
| OKLCH | oklch(32.5% 0.173 272.7) |
| XYZ | xyz(5.5429, 2.9096, 24.3093) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.78
Midnight Blue
#191970
ΔE00 4.11
Darkblue
#00008B
ΔE00 4.54
Cobalt Blue
#030AA7
ΔE00 4.61
Navy
#000080
ΔE00 5.05
Royal Blue (survey)
#0504AA
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1B8A #868A1B
analogous
#1B4F8A #1F1B8A #561B8A
triadic
#1F1B8A #8A1F1B #1B8A1F
tetradic
#1F1B8A #8A1B4F #868A1B #1B8A56
square
#1F1B8A #8A1B4F #868A1B #1B8A56
split-complementary
#1F1B8A #8A561B #4F8A1B
monochromatic
#080724 #141157 #1F1B8A #2A25BD #4A45DB
Accessibility & contrast
On white
13.27
#1F1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#1F1B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1B8A
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1B8A | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f1b8a; /* rgb */ color: rgb(31, 27, 138); /* oklch */ color: oklch(32.5% 0.173 272.7);
Tailwind
colors: {
custom: {
50: '#6f5aad',
500: '#1f1b8a',
950: '#000000',
},
}SCSS
$custom: #1f1b8a; $custom-light: #6f5aad; $custom-dark: #000000;
JSON
{
"hex": "#1f1b8a",
"rgb": {
"r": 31,
"g": 27,
"b": 138
},
"hsl": {
"h": 242.162,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.32499,
"c": 0.17329,
"h": 272.7
},
"luminance": 0.0291
}Semantic roles & 50–950 ramp
primary
#1F1B8A
secondary
#B8BC45
accent
#EA3EE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F