#1F2C7D#1F2C7D
#1F2C7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.137 H 270.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7D |
|---|---|
| RGB | rgb(31, 44, 125) |
| HSL | hsl(232, 60%, 31%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75.2%, 64.8%, 0%, 51%) |
| CIE-LAB | lab(22.21, 24.72, -47.47) |
| CIE-LCH | lch(22.21, 53.52, 297.51°) |
| OKLab | oklab(33.91% 0.0005 -0.1371) |
| OKLCH | oklch(33.91% 0.137 270.2) |
| XYZ | xyz(5.1662, 3.5728, 19.8154) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.49
Marine
#042E60
ΔE00 6.81
Royal
#0C1793
ΔE00 6.91
Sapphire (survey)
#2138AB
ΔE00 7.19
Darkslateblue
#483D8B
ΔE00 7.29
Blueberry
#464196
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7D #7D701F
analogous
#1F5B7D #1F2C7D #411F7D
triadic
#1F2C7D #7D1F2C #2C7D1F
tetradic
#1F2C7D #7D1F5B #7D701F #1F7D41
square
#1F2C7D #7D1F5B #7D701F #1F7D41
split-complementary
#1F2C7D #7D411F #5B7D1F
monochromatic
#07091B #131B4C #1F2C7D #2B3DAE #4559D1
Accessibility & contrast
On white
12.25
#1F2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F2C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7D
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7D | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2c7d; /* rgb */ color: rgb(31, 44, 125); /* oklch */ color: oklch(33.9% 0.137 270.2);
Tailwind
colors: {
custom: {
50: '#6a65a3',
500: '#1f2c7d',
950: '#000000',
},
}SCSS
$custom: #1f2c7d; $custom-light: #6a65a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7d",
"rgb": {
"r": 31,
"g": 44,
"b": 125
},
"hsl": {
"h": 231.702,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.3391,
"c": 0.13712,
"h": 270.2
},
"luminance": 0.03573
}Semantic roles & 50–950 ramp
primary
#1F2C7D
secondary
#B0A248
accent
#CD44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F