#1F2D7D#1F2D7D
#1F2D7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.136 H 269.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D7D |
|---|---|
| RGB | rgb(31, 45, 125) |
| HSL | hsl(231, 60%, 31%) |
| HSV | hsv(231, 75%, 49%) |
| CMYK | cmyk(75.2%, 64%, 0%, 51%) |
| CIE-LAB | lab(22.47, 24.03, -47.03) |
| CIE-LCH | lch(22.47, 52.81, 297.06°) |
| OKLab | oklab(34.11% -0.0002 -0.1358) |
| OKLCH | oklch(34.11% 0.136 269.9) |
| XYZ | xyz(5.2039, 3.6482, 19.8280) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.81
Marine
#042E60
ΔE00 6.60
Sapphire (survey)
#2138AB
ΔE00 7.11
Darkslateblue
#483D8B
ΔE00 7.20
Royal
#0C1793
ΔE00 7.20
Blueberry
#464196
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D7D #7D6F1F
analogous
#1F5C7D #1F2D7D #401F7D
triadic
#1F2D7D #7D1F2D #2D7D1F
tetradic
#1F2D7D #7D1F5C #7D6F1F #1F7D40
square
#1F2D7D #7D1F5C #7D6F1F #1F7D40
split-complementary
#1F2D7D #7D401F #5C7D1F
monochromatic
#070A1B #131B4C #1F2D7D #2B3FAE #455AD1
Accessibility & contrast
On white
12.14
#1F2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2D7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D7D
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D7D | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2d7d; /* rgb */ color: rgb(31, 45, 125); /* oklch */ color: oklch(34.1% 0.136 269.9);
Tailwind
colors: {
custom: {
50: '#6965a3',
500: '#1f2d7d',
950: '#000000',
},
}SCSS
$custom: #1f2d7d; $custom-light: #6965a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2d7d",
"rgb": {
"r": 31,
"g": 45,
"b": 125
},
"hsl": {
"h": 231.064,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.34107,
"c": 0.13583,
"h": 269.9
},
"luminance": 0.03649
}Semantic roles & 50–950 ramp
primary
#1F2D7D
secondary
#B0A148
accent
#CC44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F