#1F257D#1F257D
#1F257D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.146 H 272.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #1F257D |
|---|---|
| RGB | rgb(31, 37, 125) |
| HSL | hsl(236, 60%, 31%) |
| HSV | hsv(236, 75%, 49%) |
| CMYK | cmyk(75.2%, 70.4%, 0%, 51%) |
| CIE-LAB | lab(20.42, 29.45, -50.40) |
| CIE-LCH | lch(20.42, 58.37, 300.31°) |
| OKLab | oklab(32.6% 0.0054 -0.1457) |
| OKLCH | oklch(32.6% 0.146 272.1) |
| XYZ | xyz(4.9271, 3.0946, 19.7357) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.49
Royal
#0C1793
ΔE00 5.08
Dark Royal Blue
#02066F
ΔE00 7.25
Darkblue (survey)
#030764
ΔE00 7.69
Darkblue
#00008B
ΔE00 7.74
Deep Blue
#040273
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F257D #7D771F
analogous
#1F547D #1F257D #481F7D
triadic
#1F257D #7D1F25 #257D1F
tetradic
#1F257D #7D1F54 #7D771F #1F7D48
square
#1F257D #7D1F54 #7D771F #1F7D48
split-complementary
#1F257D #7D481F #547D1F
monochromatic
#07081B #13164C #1F257D #2B34AE #454ED1
Accessibility & contrast
On white
12.97
#1F257D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F257D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F257D
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F257D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F257D | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f257d; /* rgb */ color: rgb(31, 37, 125); /* oklch */ color: oklch(32.6% 0.146 272.1);
Tailwind
colors: {
custom: {
50: '#6a60a4',
500: '#1f257d',
950: '#000000',
},
}SCSS
$custom: #1f257d; $custom-light: #6a60a4; $custom-dark: #000000;
JSON
{
"hex": "#1f257d",
"rgb": {
"r": 31,
"g": 37,
"b": 125
},
"hsl": {
"h": 236.17,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.32604,
"c": 0.14583,
"h": 272.1
},
"luminance": 0.03095
}Semantic roles & 50–950 ramp
primary
#1F257D
secondary
#B0A948
accent
#D944E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F