#1F2F7D#1F2F7D
#1F2F7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.133 H 269.2°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F7D |
|---|---|
| RGB | rgb(31, 47, 125) |
| HSL | hsl(230, 60%, 31%) |
| HSV | hsv(230, 75%, 49%) |
| CMYK | cmyk(75.2%, 62.4%, 0%, 51%) |
| CIE-LAB | lab(23.01, 22.64, -46.15) |
| CIE-LCH | lch(23.01, 51.40, 296.13°) |
| OKLab | oklab(34.51% -0.0018 -0.1332) |
| OKLCH | oklch(34.51% 0.133 269.2) |
| XYZ | xyz(5.2820, 3.8045, 19.8540) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.23
Midnight Blue
#191970
ΔE00 6.47
Sapphire (survey)
#2138AB
ΔE00 6.99
Darkslateblue
#483D8B
ΔE00 7.07
Marine Blue
#01386A
ΔE00 7.33
Blueberry
#464196
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F7D #7D6D1F
analogous
#1F5E7D #1F2F7D #3E1F7D
triadic
#1F2F7D #7D1F2F #2F7D1F
tetradic
#1F2F7D #7D1F5E #7D6D1F #1F7D3E
square
#1F2F7D #7D1F5E #7D6D1F #1F7D3E
split-complementary
#1F2F7D #7D3E1F #5E7D1F
monochromatic
#070A1B #131D4C #1F2F7D #2B41AE #455DD1
Accessibility & contrast
On white
11.93
#1F2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#1F2F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F7D
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F7D | 1.00 | 11.93 | 1.76 | 11.93 |
| #FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2f7d; /* rgb */ color: rgb(31, 47, 125); /* oklch */ color: oklch(34.5% 0.133 269.2);
Tailwind
colors: {
custom: {
50: '#6967a3',
500: '#1f2f7d',
950: '#000000',
},
}SCSS
$custom: #1f2f7d; $custom-light: #6967a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2f7d",
"rgb": {
"r": 31,
"g": 47,
"b": 125
},
"hsl": {
"h": 229.787,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.34508,
"c": 0.13322,
"h": 269.2
},
"luminance": 0.03805
}Semantic roles & 50–950 ramp
primary
#1F2F7D
secondary
#B09E48
accent
#C844E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F