#1F2C80#1F2C80
#1F2C80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.141 H 270.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C80 |
|---|---|
| RGB | rgb(31, 44, 128) |
| HSL | hsl(232, 61%, 31%) |
| HSV | hsv(232, 76%, 50%) |
| CMYK | cmyk(75.8%, 65.6%, 0%, 49.8%) |
| CIE-LAB | lab(22.48, 25.88, -48.91) |
| CIE-LCH | lch(22.48, 55.34, 297.89°) |
| OKLab | oklab(34.2% 0.0004 -0.1413) |
| OKLCH | oklch(34.2% 0.141 270.2) |
| XYZ | xyz(5.3607, 3.6506, 20.8400) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.53
Royal
#0C1793
ΔE00 6.55
Sapphire (survey)
#2138AB
ΔE00 6.77
Marine
#042E60
ΔE00 7.19
Darkslateblue
#483D8B
ΔE00 7.20
Blueberry
#464196
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C80 #80731F
analogous
#1F5C80 #1F2C80 #421F80
triadic
#1F2C80 #801F2C #2C801F
tetradic
#1F2C80 #801F5C #80731F #1F8042
square
#1F2C80 #801F5C #80731F #1F8042
split-complementary
#1F2C80 #80421F #5C801F
monochromatic
#070A1D #131B4F #1F2C80 #2B3DB1 #475AD2
Accessibility & contrast
On white
12.14
#1F2C80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2C80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C80
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C80 | 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)
#003A83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2c80; /* rgb */ color: rgb(31, 44, 128); /* oklch */ color: oklch(34.2% 0.141 270.2);
Tailwind
colors: {
custom: {
50: '#6a65a6',
500: '#1f2c80',
950: '#000000',
},
}SCSS
$custom: #1f2c80; $custom-light: #6a65a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2c80",
"rgb": {
"r": 31,
"g": 44,
"b": 128
},
"hsl": {
"h": 231.959,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.34198,
"c": 0.14135,
"h": 270.2
},
"luminance": 0.03651
}Semantic roles & 50–950 ramp
primary
#1F2C80
secondary
#B3A548
accent
#CF44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F