#1F1F76#1F1F76
#1F1F76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.143 H 274.1°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1F76 |
|---|---|
| RGB | rgb(31, 31, 118) |
| HSL | hsl(240, 58%, 29%) |
| HSV | hsv(240, 74%, 46%) |
| CMYK | cmyk(73.7%, 73.7%, 0%, 53.7%) |
| CIE-LAB | lab(18.27, 30.77, -49.46) |
| CIE-LCH | lch(18.27, 58.25, 301.89°) |
| OKLab | oklab(30.84% 0.0101 -0.143) |
| OKLCH | oklch(30.84% 0.143 274.1) |
| XYZ | xyz(4.3240, 2.5789, 17.4059) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.69
Royal
#0C1793
ΔE00 5.02
Dark Royal Blue
#02066F
ΔE00 5.64
Darkblue (survey)
#030764
ΔE00 5.96
Deep Blue
#040273
ΔE00 6.20
Navy
#000080
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1F76 #76761F
analogous
#1F4B76 #1F1F76 #4B1F76
triadic
#1F1F76 #761F1F #1F761F
tetradic
#1F1F76 #761F4B #76761F #1F764B
square
#1F1F76 #761F4B #76761F #1F764B
split-complementary
#1F1F76 #764B1F #4B761F
monochromatic
#060618 #121246 #1F1F76 #2C2CA6 #4242CD
Accessibility & contrast
On white
13.85
#1F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F1F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1F76
13.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1F76 | 1.00 | 13.85 | 1.52 | 13.85 |
| #FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f1f76; /* rgb */ color: rgb(31, 31, 118); /* oklch */ color: oklch(30.8% 0.143 274.1);
Tailwind
colors: {
custom: {
50: '#695b9e',
500: '#1f1f76',
950: '#000000',
},
}SCSS
$custom: #1f1f76; $custom-light: #695b9e; $custom-dark: #000000;
JSON
{
"hex": "#1f1f76",
"rgb": {
"r": 31,
"g": 31,
"b": 118
},
"hsl": {
"h": 240,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.30838,
"c": 0.14335,
"h": 274.1
},
"luminance": 0.02579
}Semantic roles & 50–950 ramp
primary
#1F1F76
secondary
#AAAA47
accent
#E246E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E