#1F2D7C#1F2D7C
#1F2D7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.134 H 269.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D7C |
|---|---|
| RGB | rgb(31, 45, 124) |
| HSL | hsl(231, 60%, 30%) |
| HSV | hsv(231, 75%, 49%) |
| CMYK | cmyk(75%, 63.7%, 0%, 51.4%) |
| CIE-LAB | lab(22.38, 23.64, -46.54) |
| CIE-LCH | lch(22.38, 52.20, 296.93°) |
| OKLab | oklab(34.01% -0.0002 -0.1344) |
| OKLCH | oklch(34.01% 0.134 269.9) |
| XYZ | xyz(5.1403, 3.6228, 19.4932) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.82
Marine
#042E60
ΔE00 6.47
Darkslateblue
#483D8B
ΔE00 7.25
Sapphire (survey)
#2138AB
ΔE00 7.25
Royal
#0C1793
ΔE00 7.33
Blueberry
#464196
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D7C #7C6E1F
analogous
#1F5B7C #1F2D7C #401F7C
triadic
#1F2D7C #7C1F2D #2D7C1F
tetradic
#1F2D7C #7C1F5B #7C6E1F #1F7C40
square
#1F2D7C #7C1F5B #7C6E1F #1F7C40
split-complementary
#1F2D7C #7C401F #5B7C1F
monochromatic
#07091A #131B4B #1F2D7C #2B3FAD #455AD0
Accessibility & contrast
On white
12.18
#1F2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D7C
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D7C | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2d7c; /* rgb */ color: rgb(31, 45, 124); /* oklch */ color: oklch(34.0% 0.134 269.9);
Tailwind
colors: {
custom: {
50: '#6965a3',
500: '#1f2d7c',
950: '#000000',
},
}SCSS
$custom: #1f2d7c; $custom-light: #6965a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2d7c",
"rgb": {
"r": 31,
"g": 45,
"b": 124
},
"hsl": {
"h": 230.968,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.34013,
"c": 0.1344,
"h": 269.9
},
"luminance": 0.03623
}Semantic roles & 50–950 ramp
primary
#1F2D7C
secondary
#AFA048
accent
#CB45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F