#1F337E#1F337E
#1F337E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.129 H 267.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F337E |
|---|---|
| RGB | rgb(31, 51, 126) |
| HSL | hsl(227, 61%, 31%) |
| HSV | hsv(227, 75%, 49%) |
| CMYK | cmyk(75.4%, 59.5%, 0%, 50.6%) |
| CIE-LAB | lab(24.21, 20.24, -44.83) |
| CIE-LCH | lch(24.21, 49.19, 294.30°) |
| OKLab | oklab(35.43% -0.0049 -0.1293) |
| OKLCH | oklch(35.43% 0.129 267.8) |
| XYZ | xyz(5.5135, 4.1647, 20.2479) |
| Luminance | 0.0416 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.79
Marine Blue
#01386A
ΔE00 6.34
Darkish Blue
#014182
ΔE00 6.66
Sapphire (survey)
#2138AB
ΔE00 6.77
Darkslateblue
#483D8B
ΔE00 6.95
Blueberry
#464196
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F337E #7E6A1F
analogous
#1F627E #1F337E #3A1F7E
triadic
#1F337E #7E1F33 #337E1F
tetradic
#1F337E #7E1F62 #7E6A1F #1F7E3A
square
#1F337E #7E1F62 #7E6A1F #1F7E3A
split-complementary
#1F337E #7E3A1F #627E1F
monochromatic
#070B1C #131F4D #1F337E #2B47AF #4663D1
Accessibility & contrast
On white
11.46
#1F337E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#1F337E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F337E
11.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F337E | 1.00 | 11.46 | 1.83 | 11.46 |
| #FFFFFF | 11.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f337e; /* rgb */ color: rgb(31, 51, 126); /* oklch */ color: oklch(35.4% 0.129 267.8);
Tailwind
colors: {
custom: {
50: '#696aa4',
500: '#1f337e',
950: '#000000',
},
}SCSS
$custom: #1f337e; $custom-light: #696aa4; $custom-dark: #000000;
JSON
{
"hex": "#1f337e",
"rgb": {
"r": 31,
"g": 51,
"b": 126
},
"hsl": {
"h": 227.368,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.35425,
"c": 0.12938,
"h": 267.8
},
"luminance": 0.04165
}Semantic roles & 50–950 ramp
primary
#1F337E
secondary
#B19B48
accent
#C244E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F