#1F2C87#1F2C87
#1F2C87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.151 H 270.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C87 |
|---|---|
| RGB | rgb(31, 44, 135) |
| HSL | hsl(233, 63%, 33%) |
| HSV | hsv(233, 77%, 53%) |
| CMYK | cmyk(77%, 67.4%, 0%, 47.1%) |
| CIE-LAB | lab(23.14, 28.57, -52.23) |
| CIE-LCH | lch(23.14, 59.53, 298.67°) |
| OKLab | oklab(34.88% 0 -0.1511) |
| OKLCH | oklch(34.88% 0.151 270) |
| XYZ | xyz(5.8374, 3.8413, 23.3508) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.82
Royal
#0C1793
ΔE00 5.85
Sapphire (survey)
#2138AB
ΔE00 5.85
Darkslateblue
#483D8B
ΔE00 7.11
Blueberry
#464196
ΔE00 7.37
Marine
#042E60
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C87 #877A1F
analogous
#1F6087 #1F2C87 #461F87
triadic
#1F2C87 #871F2C #2C871F
tetradic
#1F2C87 #871F60 #877A1F #1F8746
square
#1F2C87 #871F60 #877A1F #1F8746
split-complementary
#1F2C87 #87461F #60871F
monochromatic
#080C23 #141C55 #1F2C87 #2A3CB9 #4B5CD6
Accessibility & contrast
On white
11.88
#1F2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F2C87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C87
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C87 | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2c87; /* rgb */ color: rgb(31, 44, 135); /* oklch */ color: oklch(34.9% 0.151 270.0);
Tailwind
colors: {
custom: {
50: '#6c65ab',
500: '#1f2c87',
950: '#000000',
},
}SCSS
$custom: #1f2c87; $custom-light: #6c65ab; $custom-dark: #000000;
JSON
{
"hex": "#1f2c87",
"rgb": {
"r": 31,
"g": 44,
"b": 135
},
"hsl": {
"h": 232.5,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.34883,
"c": 0.15107,
"h": 270
},
"luminance": 0.03842
}Semantic roles & 50–950 ramp
primary
#1F2C87
secondary
#B8AA4A
accent
#D142E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F