#1F1B8B#1F1B8B
#1F1B8B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.175 H 272.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1B8B |
|---|---|
| RGB | rgb(31, 27, 139) |
| HSL | hsl(242, 67%, 33%) |
| HSV | hsv(242, 81%, 55%) |
| CMYK | cmyk(77.7%, 80.6%, 0%, 45.5%) |
| CIE-LAB | lab(19.80, 40.44, -60.25) |
| CIE-LCH | lch(19.80, 72.56, 303.87°) |
| OKLab | oklab(32.62% 0.0079 -0.1743) |
| OKLCH | oklch(32.62% 0.175 272.6) |
| XYZ | xyz(5.6156, 2.9387, 24.6923) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.68
Midnight Blue
#191970
ΔE00 4.26
Cobalt Blue
#030AA7
ΔE00 4.48
Darkblue
#00008B
ΔE00 4.53
Royal Blue (survey)
#0504AA
ΔE00 5.05
Navy
#000080
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1B8B #878B1B
analogous
#1B4F8B #1F1B8B #571B8B
triadic
#1F1B8B #8B1F1B #1B8B1F
tetradic
#1F1B8B #8B1B4F #878B1B #1B8B57
square
#1F1B8B #8B1B4F #878B1B #1B8B57
split-complementary
#1F1B8B #8B571B #4F8B1B
monochromatic
#080725 #141158 #1F1B8B #2A25BE #4B45DB
Accessibility & contrast
On white
13.23
#1F1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1F1B8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1B8B
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1B8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1B8B | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f1b8b; /* rgb */ color: rgb(31, 27, 139); /* oklch */ color: oklch(32.6% 0.175 272.6);
Tailwind
colors: {
custom: {
50: '#6f5aae',
500: '#1f1b8b',
950: '#000000',
},
}SCSS
$custom: #1f1b8b; $custom-light: #6f5aae; $custom-dark: #000000;
JSON
{
"hex": "#1f1b8b",
"rgb": {
"r": 31,
"g": 27,
"b": 139
},
"hsl": {
"h": 242.143,
"s": 67.47,
"l": 32.549
},
"oklch": {
"l": 0.32617,
"c": 0.17453,
"h": 272.6
},
"luminance": 0.02939
}Semantic roles & 50–950 ramp
primary
#1F1B8B
secondary
#B8BC45
accent
#EA3DE4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F