#1F2D7B#1F2D7B
#1F2D7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 269.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D7B |
|---|---|
| RGB | rgb(31, 45, 123) |
| HSL | hsl(231, 60%, 30%) |
| HSV | hsv(231, 75%, 48%) |
| CMYK | cmyk(74.8%, 63.4%, 0%, 51.8%) |
| CIE-LAB | lab(22.29, 23.25, -46.05) |
| CIE-LCH | lch(22.29, 51.59, 296.79°) |
| OKLab | oklab(33.92% -0.0002 -0.133) |
| OKLCH | oklch(33.92% 0.133 269.9) |
| XYZ | xyz(5.0774, 3.5976, 19.1619) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.83
Marine
#042E60
ΔE00 6.35
Darkslateblue
#483D8B
ΔE00 7.29
Sapphire (survey)
#2138AB
ΔE00 7.40
Royal
#0C1793
ΔE00 7.46
Marine Blue
#01386A
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D7B #7B6D1F
analogous
#1F5B7B #1F2D7B #3F1F7B
triadic
#1F2D7B #7B1F2D #2D7B1F
tetradic
#1F2D7B #7B1F5B #7B6D1F #1F7B3F
square
#1F2D7B #7B1F5B #7B6D1F #1F7B3F
split-complementary
#1F2D7B #7B3F1F #5B7B1F
monochromatic
#060919 #131B4A #1F2D7B #2B3FAC #445AD0
Accessibility & contrast
On white
12.21
#1F2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2D7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D7B
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D7B | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2d7b; /* rgb */ color: rgb(31, 45, 123); /* oklch */ color: oklch(33.9% 0.133 269.9);
Tailwind
colors: {
custom: {
50: '#6965a2',
500: '#1f2d7b',
950: '#000000',
},
}SCSS
$custom: #1f2d7b; $custom-light: #6965a2; $custom-dark: #000000;
JSON
{
"hex": "#1f2d7b",
"rgb": {
"r": 31,
"g": 45,
"b": 123
},
"hsl": {
"h": 230.87,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.3392,
"c": 0.13296,
"h": 269.9
},
"luminance": 0.03598
}Semantic roles & 50–950 ramp
primary
#1F2D7B
secondary
#AE9F48
accent
#CB45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F