#1F258C#1F258C
#1F258C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.166 H 271.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #1F258C |
|---|---|
| RGB | rgb(31, 37, 140) |
| HSL | hsl(237, 64%, 34%) |
| HSV | hsv(237, 78%, 55%) |
| CMYK | cmyk(77.9%, 73.6%, 0%, 45.1%) |
| CIE-LAB | lab(21.97, 34.96, -57.28) |
| CIE-LCH | lch(21.97, 67.10, 301.40°) |
| OKLab | oklab(34.19% 0.0034 -0.1658) |
| OKLCH | oklch(34.19% 0.166 271.2) |
| XYZ | xyz(5.9587, 3.5072, 25.1688) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.52
Midnight Blue
#191970
ΔE00 4.92
Cobalt Blue
#030AA7
ΔE00 6.11
Sapphire (survey)
#2138AB
ΔE00 6.48
Royal Blue (survey)
#0504AA
ΔE00 6.71
Indigo Blue
#3A18B1
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F258C #8C861F
analogous
#1F5B8C #1F258C #4F1F8C
triadic
#1F258C #8C1F25 #258C1F
tetradic
#1F258C #8C1F5B #8C861F #1F8C4F
square
#1F258C #8C1F5B #8C861F #1F8C4F
split-complementary
#1F258C #8C4F1F #5B8C1F
monochromatic
#090B28 #14185A #1F258C #2A32BE #4E55D8
Accessibility & contrast
On white
12.34
#1F258C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F258C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F258C
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F258C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F258C | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f258c; /* rgb */ color: rgb(31, 37, 140); /* oklch */ color: oklch(34.2% 0.166 271.2);
Tailwind
colors: {
custom: {
50: '#6e60af',
500: '#1f258c',
950: '#000000',
},
}SCSS
$custom: #1f258c; $custom-light: #6e60af; $custom-dark: #000000;
JSON
{
"hex": "#1f258c",
"rgb": {
"r": 31,
"g": 37,
"b": 140
},
"hsl": {
"h": 236.697,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.3419,
"c": 0.16584,
"h": 271.2
},
"luminance": 0.03508
}Semantic roles & 50–950 ramp
primary
#1F258C
secondary
#BBB44C
accent
#DE41E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F