#1F2C7F#1F2C7F
#1F2C7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.140 H 270.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7F |
|---|---|
| RGB | rgb(31, 44, 127) |
| HSL | hsl(232, 61%, 31%) |
| HSV | hsv(232, 76%, 50%) |
| CMYK | cmyk(75.6%, 65.4%, 0%, 50.2%) |
| CIE-LAB | lab(22.39, 25.50, -48.43) |
| CIE-LCH | lch(22.39, 54.73, 297.76°) |
| OKLab | oklab(34.1% 0.0004 -0.1399) |
| OKLCH | oklch(34.1% 0.14 270.2) |
| XYZ | xyz(5.2952, 3.6244, 20.4951) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.51
Royal
#0C1793
ΔE00 6.67
Sapphire (survey)
#2138AB
ΔE00 6.91
Marine
#042E60
ΔE00 7.06
Darkslateblue
#483D8B
ΔE00 7.23
Blueberry
#464196
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7F #7F721F
analogous
#1F5C7F #1F2C7F #421F7F
triadic
#1F2C7F #7F1F2C #2C7F1F
tetradic
#1F2C7F #7F1F5C #7F721F #1F7F42
square
#1F2C7F #7F1F5C #7F721F #1F7F42
split-complementary
#1F2C7F #7F421F #5C7F1F
monochromatic
#070A1D #131B4E #1F2C7F #2B3DB0 #4659D2
Accessibility & contrast
On white
12.17
#1F2C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7F
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7F | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2c7f; /* rgb */ color: rgb(31, 44, 127); /* oklch */ color: oklch(34.1% 0.140 270.2);
Tailwind
colors: {
custom: {
50: '#6a65a5',
500: '#1f2c7f',
950: '#000000',
},
}SCSS
$custom: #1f2c7f; $custom-light: #6a65a5; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7f",
"rgb": {
"r": 31,
"g": 44,
"b": 127
},
"hsl": {
"h": 231.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34102,
"c": 0.13995,
"h": 270.2
},
"luminance": 0.03625
}Semantic roles & 50–950 ramp
primary
#1F2C7F
secondary
#B2A448
accent
#CE44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F