#1F2F9E#1F2F9E
#1F2F9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.178 H 268.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F9E |
|---|---|
| RGB | rgb(31, 47, 158) |
| HSL | hsl(232, 67%, 37%) |
| HSV | hsv(232, 80%, 62%) |
| CMYK | cmyk(80.4%, 70.3%, 0%, 38%) |
| CIE-LAB | lab(26.13, 35.21, -61.50) |
| CIE-LCH | lch(26.13, 70.87, 299.79°) |
| OKLab | oklab(37.75% -0.0036 -0.1781) |
| OKLCH | oklch(37.75% 0.178 268.8) |
| XYZ | xyz(7.7510, 4.7921, 32.8576) |
| Luminance | 0.0479 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Royal
#0C1793
ΔE00 5.91
Indigo Blue
#3A18B1
ΔE00 6.57
Blueberry
#464196
ΔE00 6.72
Cobalt Blue
#030AA7
ΔE00 7.32
Darkslateblue
#483D8B
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F9E #9E8E1F
analogous
#1F6F9E #1F2F9E #4F1F9E
triadic
#1F2F9E #9E1F2F #2F9E1F
tetradic
#1F2F9E #9E1F6F #9E8E1F #1F9E4F
square
#1F2F9E #9E1F6F #9E8E1F #1F9E4F
split-complementary
#1F2F9E #9E4F1F #6F9E1F
monochromatic
#0B1138 #15206B #1F2F9E #293ED1 #596ADE
Accessibility & contrast
On white
10.72
#1F2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#1F2F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F9E
10.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F9E | 1.00 | 10.72 | 1.96 | 10.72 |
| #FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f2f9e; /* rgb */ color: rgb(31, 47, 158); /* oklch */ color: oklch(37.7% 0.178 268.8);
Tailwind
colors: {
custom: {
50: '#7268bc',
500: '#1f2f9e',
950: '#000000',
},
}SCSS
$custom: #1f2f9e; $custom-light: #7268bc; $custom-dark: #000000;
JSON
{
"hex": "#1f2f9e",
"rgb": {
"r": 31,
"g": 47,
"b": 158
},
"hsl": {
"h": 232.441,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.37749,
"c": 0.17818,
"h": 268.8
},
"luminance": 0.04793
}Semantic roles & 50–950 ramp
primary
#1F2F9E
secondary
#C2B556
accent
#D43EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81