#1F2B7C#1F2B7C
#1F2B7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.137 H 270.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B7C |
|---|---|
| RGB | rgb(31, 43, 124) |
| HSL | hsl(232, 60%, 30%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75%, 65.3%, 0%, 51.4%) |
| CIE-LAB | lab(21.85, 25.02, -47.42) |
| CIE-LCH | lch(21.85, 53.61, 297.82°) |
| OKLab | oklab(33.62% 0.0013 -0.137) |
| OKLCH | oklch(33.62% 0.137 270.5) |
| XYZ | xyz(5.0658, 3.4738, 19.4684) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.17
Royal
#0C1793
ΔE00 6.75
Marine
#042E60
ΔE00 6.90
Sapphire (survey)
#2138AB
ΔE00 7.41
Darkslateblue
#483D8B
ΔE00 7.43
Blueberry
#464196
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B7C #7C701F
analogous
#1F597C #1F2B7C #411F7C
triadic
#1F2B7C #7C1F2B #2B7C1F
tetradic
#1F2B7C #7C1F59 #7C701F #1F7C41
square
#1F2B7C #7C1F59 #7C701F #1F7C41
split-complementary
#1F2B7C #7C411F #597C1F
monochromatic
#07091A #131A4B #1F2B7C #2B3CAD #4557D0
Accessibility & contrast
On white
12.39
#1F2B7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#1F2B7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B7C
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B7C | 1.00 | 12.39 | 1.69 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2b7c; /* rgb */ color: rgb(31, 43, 124); /* oklch */ color: oklch(33.6% 0.137 270.5);
Tailwind
colors: {
custom: {
50: '#6964a3',
500: '#1f2b7c',
950: '#000000',
},
}SCSS
$custom: #1f2b7c; $custom-light: #6964a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2b7c",
"rgb": {
"r": 31,
"g": 43,
"b": 124
},
"hsl": {
"h": 232.258,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.33619,
"c": 0.13699,
"h": 270.5
},
"luminance": 0.03474
}Semantic roles & 50–950 ramp
primary
#1F2B7C
secondary
#AFA248
accent
#CF45E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F