#1F2974#1F2974
#1F2974 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.128 H 271.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2974 |
|---|---|
| RGB | rgb(31, 41, 116) |
| HSL | hsl(233, 58%, 29%) |
| HSV | hsv(233, 73%, 45%) |
| CMYK | cmyk(73.3%, 64.7%, 0%, 54.5%) |
| CIE-LAB | lab(20.59, 23.30, -44.38) |
| CIE-LCH | lch(20.59, 50.12, 297.71°) |
| OKLab | oklab(32.46% 0.0031 -0.1281) |
| OKLCH | oklch(32.46% 0.128 271.4) |
| XYZ | xyz(4.5093, 3.1377, 16.8876) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.67
Marine
#042E60
ΔE00 6.46
Royal
#0C1793
ΔE00 7.35
Darkslateblue
#483D8B
ΔE00 8.02
Marine Blue
#01386A
ΔE00 8.50
Navy Blue
#1B2A4A
ΔE00 8.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2974 #746A1F
analogous
#1F5474 #1F2974 #401F74
triadic
#1F2974 #741F29 #29741F
tetradic
#1F2974 #741F54 #746A1F #1F7440
square
#1F2974 #741F54 #746A1F #1F7440
split-complementary
#1F2974 #74401F #54741F
monochromatic
#060918 #121844 #1F2974 #2C3AA4 #4152CC
Accessibility & contrast
On white
12.90
#1F2974 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F2974 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2974
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2974 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2974 | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2974; /* rgb */ color: rgb(31, 41, 116); /* oklch */ color: oklch(32.5% 0.128 271.4);
Tailwind
colors: {
custom: {
50: '#68629d',
500: '#1f2974',
950: '#000000',
},
}SCSS
$custom: #1f2974; $custom-light: #68629d; $custom-dark: #000000;
JSON
{
"hex": "#1f2974",
"rgb": {
"r": 31,
"g": 41,
"b": 116
},
"hsl": {
"h": 232.941,
"s": 57.823,
"l": 28.824
},
"oklch": {
"l": 0.32463,
"c": 0.12812,
"h": 271.4
},
"luminance": 0.03138
}Semantic roles & 50–950 ramp
primary
#1F2974
secondary
#A89C47
accent
#CF47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E