#1F257C#1F257C
#1F257C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.144 H 272.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #1F257C |
|---|---|
| RGB | rgb(31, 37, 124) |
| HSL | hsl(236, 60%, 30%) |
| HSV | hsv(236, 75%, 49%) |
| CMYK | cmyk(75%, 70.2%, 0%, 51.4%) |
| CIE-LAB | lab(20.32, 29.08, -49.92) |
| CIE-LCH | lch(20.32, 57.78, 300.22°) |
| OKLab | oklab(32.5% 0.0055 -0.1444) |
| OKLCH | oklch(32.5% 0.144 272.2) |
| XYZ | xyz(4.8635, 3.0692, 19.4010) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.44
Royal
#0C1793
ΔE00 5.22
Dark Royal Blue
#02066F
ΔE00 7.25
Darkblue (survey)
#030764
ΔE00 7.66
Deep Blue
#040273
ΔE00 7.77
Darkblue
#00008B
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F257C #7C761F
analogous
#1F537C #1F257C #471F7C
triadic
#1F257C #7C1F25 #257C1F
tetradic
#1F257C #7C1F53 #7C761F #1F7C47
square
#1F257C #7C1F53 #7C761F #1F7C47
split-complementary
#1F257C #7C471F #537C1F
monochromatic
#07081A #13164B #1F257C #2B34AD #454ED0
Accessibility & contrast
On white
13.01
#1F257C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F257C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F257C
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F257C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F257C | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f257c; /* rgb */ color: rgb(31, 37, 124); /* oklch */ color: oklch(32.5% 0.144 272.2);
Tailwind
colors: {
custom: {
50: '#6a60a3',
500: '#1f257c',
950: '#000000',
},
}SCSS
$custom: #1f257c; $custom-light: #6a60a3; $custom-dark: #000000;
JSON
{
"hex": "#1f257c",
"rgb": {
"r": 31,
"g": 37,
"b": 124
},
"hsl": {
"h": 236.129,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.32501,
"c": 0.14446,
"h": 272.2
},
"luminance": 0.0307
}Semantic roles & 50–950 ramp
primary
#1F257C
secondary
#AFA948
accent
#D945E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F