#1F337C#1F337C
#1F337C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.126 H 267.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F337C |
|---|---|
| RGB | rgb(31, 51, 124) |
| HSL | hsl(227, 60%, 30%) |
| HSV | hsv(227, 75%, 49%) |
| CMYK | cmyk(75%, 58.9%, 0%, 51.4%) |
| CIE-LAB | lab(24.04, 19.44, -43.84) |
| CIE-LCH | lch(24.04, 47.96, 293.92°) |
| OKLab | oklab(35.25% -0.005 -0.1264) |
| OKLCH | oklch(35.25% 0.126 267.7) |
| XYZ | xyz(5.3857, 4.1136, 19.5750) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.52
Marine Blue
#01386A
ΔE00 6.15
Darkish Blue
#014182
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 7.08
Sapphire (survey)
#2138AB
ΔE00 7.09
Blueberry
#464196
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F337C #7C681F
analogous
#1F617C #1F337C #3A1F7C
triadic
#1F337C #7C1F33 #337C1F
tetradic
#1F337C #7C1F61 #7C681F #1F7C3A
square
#1F337C #7C1F61 #7C681F #1F7C3A
split-complementary
#1F337C #7C3A1F #617C1F
monochromatic
#070B1A #131F4B #1F337C #2B47AD #4563D0
Accessibility & contrast
On white
11.52
#1F337C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F337C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F337C
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F337C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F337C | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f337c; /* rgb */ color: rgb(31, 51, 124); /* oklch */ color: oklch(35.3% 0.126 267.7);
Tailwind
colors: {
custom: {
50: '#696aa3',
500: '#1f337c',
950: '#000000',
},
}SCSS
$custom: #1f337c; $custom-light: #696aa3; $custom-dark: #000000;
JSON
{
"hex": "#1f337c",
"rgb": {
"r": 31,
"g": 51,
"b": 124
},
"hsl": {
"h": 227.097,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.3525,
"c": 0.12647,
"h": 267.7
},
"luminance": 0.04114
}Semantic roles & 50–950 ramp
primary
#1F337C
secondary
#AF9948
accent
#C145E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F