#1F2A75#1F2A75
#1F2A75 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.128 H 271.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A75 |
|---|---|
| RGB | rgb(31, 42, 117) |
| HSL | hsl(232, 58%, 29%) |
| HSV | hsv(232, 74%, 46%) |
| CMYK | cmyk(73.5%, 64.1%, 0%, 54.1%) |
| CIE-LAB | lab(20.95, 23.00, -44.43) |
| CIE-LCH | lch(20.95, 50.03, 297.37°) |
| OKLab | oklab(32.76% 0.0023 -0.1282) |
| OKLCH | oklch(32.76% 0.128 271) |
| XYZ | xyz(4.6028, 3.2311, 17.2073) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.97
Marine
#042E60
ΔE00 6.31
Royal
#0C1793
ΔE00 7.45
Darkslateblue
#483D8B
ΔE00 7.86
Marine Blue
#01386A
ΔE00 8.25
Sapphire (survey)
#2138AB
ΔE00 8.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A75 #756A1F
analogous
#1F5575 #1F2A75 #3F1F75
triadic
#1F2A75 #751F2A #2A751F
tetradic
#1F2A75 #751F55 #756A1F #1F753F
square
#1F2A75 #751F55 #756A1F #1F753F
split-complementary
#1F2A75 #753F1F #55751F
monochromatic
#060918 #121945 #1F2A75 #2C3BA5 #4253CD
Accessibility & contrast
On white
12.76
#1F2A75 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1F2A75 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A75
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A75 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A75 | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2a75; /* rgb */ color: rgb(31, 42, 117); /* oklch */ color: oklch(32.8% 0.128 271.0);
Tailwind
colors: {
custom: {
50: '#68639d',
500: '#1f2a75',
950: '#000000',
},
}SCSS
$custom: #1f2a75; $custom-light: #68639d; $custom-dark: #000000;
JSON
{
"hex": "#1f2a75",
"rgb": {
"r": 31,
"g": 42,
"b": 117
},
"hsl": {
"h": 232.326,
"s": 58.108,
"l": 29.02
},
"oklch": {
"l": 0.32757,
"c": 0.12825,
"h": 271
},
"luminance": 0.03232
}Semantic roles & 50–950 ramp
primary
#1F2A75
secondary
#A99C47
accent
#CE46E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E