#1F2C81#1F2C81
#1F2C81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.143 H 270.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C81 |
|---|---|
| RGB | rgb(31, 44, 129) |
| HSL | hsl(232, 61%, 31%) |
| HSV | hsv(232, 76%, 51%) |
| CMYK | cmyk(76%, 65.9%, 0%, 49.4%) |
| CIE-LAB | lab(22.57, 26.27, -49.39) |
| CIE-LCH | lch(22.57, 55.94, 298.00°) |
| OKLab | oklab(34.29% 0.0003 -0.1428) |
| OKLCH | oklch(34.29% 0.143 270.1) |
| XYZ | xyz(5.4268, 3.6771, 21.1884) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.56
Royal
#0C1793
ΔE00 6.44
Sapphire (survey)
#2138AB
ΔE00 6.63
Darkslateblue
#483D8B
ΔE00 7.18
Marine
#042E60
ΔE00 7.31
Blueberry
#464196
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C81 #81741F
analogous
#1F5D81 #1F2C81 #431F81
triadic
#1F2C81 #811F2C #2C811F
tetradic
#1F2C81 #811F5D #81741F #1F8143
square
#1F2C81 #811F5D #81741F #1F8143
split-complementary
#1F2C81 #81431F #5D811F
monochromatic
#070A1E #131B50 #1F2C81 #2B3DB2 #475AD3
Accessibility & contrast
On white
12.10
#1F2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#1F2C81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C81
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C81 | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2c81; /* rgb */ color: rgb(31, 44, 129); /* oklch */ color: oklch(34.3% 0.143 270.1);
Tailwind
colors: {
custom: {
50: '#6b65a6',
500: '#1f2c81',
950: '#000000',
},
}SCSS
$custom: #1f2c81; $custom-light: #6b65a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2c81",
"rgb": {
"r": 31,
"g": 44,
"b": 129
},
"hsl": {
"h": 232.041,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.34295,
"c": 0.14276,
"h": 270.1
},
"luminance": 0.03678
}Semantic roles & 50–950 ramp
primary
#1F2C81
secondary
#B4A648
accent
#CF43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F