#1F2F7E#1F2F7E
#1F2F7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.135 H 269.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F7E |
|---|---|
| RGB | rgb(31, 47, 126) |
| HSL | hsl(230, 61%, 31%) |
| HSV | hsv(230, 75%, 49%) |
| CMYK | cmyk(75.4%, 62.7%, 0%, 50.6%) |
| CIE-LAB | lab(23.10, 23.03, -46.64) |
| CIE-LCH | lch(23.10, 52.01, 296.28°) |
| OKLab | oklab(34.6% -0.0018 -0.1346) |
| OKLCH | oklch(34.6% 0.135 269.2) |
| XYZ | xyz(5.3462, 3.8301, 20.1922) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.36
Midnight Blue
#191970
ΔE00 6.46
Sapphire (survey)
#2138AB
ΔE00 6.84
Darkslateblue
#483D8B
ΔE00 7.03
Marine Blue
#01386A
ΔE00 7.42
Blueberry
#464196
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F7E #7E6E1F
analogous
#1F5E7E #1F2F7E #3E1F7E
triadic
#1F2F7E #7E1F2F #2F7E1F
tetradic
#1F2F7E #7E1F5E #7E6E1F #1F7E3E
square
#1F2F7E #7E1F5E #7E6E1F #1F7E3E
split-complementary
#1F2F7E #7E3E1F #5E7E1F
monochromatic
#070A1C #131D4D #1F2F7E #2B41AF #465DD1
Accessibility & contrast
On white
11.89
#1F2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F2F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F7E
11.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F7E | 1.00 | 11.89 | 1.77 | 11.89 |
| #FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2f7e; /* rgb */ color: rgb(31, 47, 126); /* oklch */ color: oklch(34.6% 0.135 269.2);
Tailwind
colors: {
custom: {
50: '#6a67a4',
500: '#1f2f7e',
950: '#000000',
},
}SCSS
$custom: #1f2f7e; $custom-light: #6a67a4; $custom-dark: #000000;
JSON
{
"hex": "#1f2f7e",
"rgb": {
"r": 31,
"g": 47,
"b": 126
},
"hsl": {
"h": 229.895,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.34601,
"c": 0.13466,
"h": 269.2
},
"luminance": 0.03831
}Semantic roles & 50–950 ramp
primary
#1F2F7E
secondary
#B19F48
accent
#C944E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F