#1F2F7B#1F2F7B
#1F2F7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.130 H 269.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F7B |
|---|---|
| RGB | rgb(31, 47, 123) |
| HSL | hsl(230, 60%, 30%) |
| HSV | hsv(230, 75%, 48%) |
| CMYK | cmyk(74.8%, 61.8%, 0%, 51.8%) |
| CIE-LAB | lab(22.84, 21.85, -45.16) |
| CIE-LCH | lch(22.84, 50.17, 295.82°) |
| OKLab | oklab(34.33% -0.0018 -0.1303) |
| OKLCH | oklch(34.33% 0.13 269.2) |
| XYZ | xyz(5.1555, 3.7539, 19.1879) |
| Luminance | 0.0375 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.96
Midnight Blue
#191970
ΔE00 6.51
Marine Blue
#01386A
ΔE00 7.17
Darkslateblue
#483D8B
ΔE00 7.17
Sapphire (survey)
#2138AB
ΔE00 7.30
Blueberry
#464196
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F7B #7B6B1F
analogous
#1F5D7B #1F2F7B #3D1F7B
triadic
#1F2F7B #7B1F2F #2F7B1F
tetradic
#1F2F7B #7B1F5D #7B6B1F #1F7B3D
square
#1F2F7B #7B1F5D #7B6B1F #1F7B3D
split-complementary
#1F2F7B #7B3D1F #5D7B1F
monochromatic
#060A19 #131C4A #1F2F7B #2B42AC #445DD0
Accessibility & contrast
On white
11.99
#1F2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1F2F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F7B
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F7B | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2f7b; /* rgb */ color: rgb(31, 47, 123); /* oklch */ color: oklch(34.3% 0.130 269.2);
Tailwind
colors: {
custom: {
50: '#6967a2',
500: '#1f2f7b',
950: '#000000',
},
}SCSS
$custom: #1f2f7b; $custom-light: #6967a2; $custom-dark: #000000;
JSON
{
"hex": "#1f2f7b",
"rgb": {
"r": 31,
"g": 47,
"b": 123
},
"hsl": {
"h": 229.565,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.34325,
"c": 0.13033,
"h": 269.2
},
"luminance": 0.03754
}Semantic roles & 50–950 ramp
primary
#1F2F7B
secondary
#AE9C48
accent
#C745E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F