#1F2C8F#1F2C8F
#1F2C8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.162 H 269.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C8F |
|---|---|
| RGB | rgb(31, 44, 143) |
| HSL | hsl(233, 64%, 34%) |
| HSV | hsv(233, 78%, 56%) |
| CMYK | cmyk(78.3%, 69.2%, 0%, 43.9%) |
| CIE-LAB | lab(23.92, 31.59, -55.93) |
| CIE-LCH | lch(23.92, 64.24, 299.45°) |
| OKLab | oklab(35.69% -0.0007 -0.1619) |
| OKLCH | oklch(35.69% 0.162 269.8) |
| XYZ | xyz(6.4220, 4.0751, 26.4294) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.92
Royal
#0C1793
ΔE00 5.29
Midnight Blue
#191970
ΔE00 6.40
Darkslateblue
#483D8B
ΔE00 7.18
Blueberry
#464196
ΔE00 7.18
Cobalt Blue
#030AA7
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C8F #8F821F
analogous
#1F648F #1F2C8F #4A1F8F
triadic
#1F2C8F #8F1F2C #2C8F1F
tetradic
#1F2C8F #8F1F64 #8F821F #1F8F4A
square
#1F2C8F #8F1F64 #8F821F #1F8F4A
split-complementary
#1F2C8F #8F4A1F #648F1F
monochromatic
#090D2A #141D5D #1F2C8F #2A3BC1 #4F5FD9
Accessibility & contrast
On white
11.57
#1F2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C8F
11.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C8F | 1.00 | 11.57 | 1.82 | 11.57 |
| #FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2c8f; /* rgb */ color: rgb(31, 44, 143); /* oklch */ color: oklch(35.7% 0.162 269.8);
Tailwind
colors: {
custom: {
50: '#6e65b1',
500: '#1f2c8f',
950: '#000000',
},
}SCSS
$custom: #1f2c8f; $custom-light: #6e65b1; $custom-dark: #000000;
JSON
{
"hex": "#1f2c8f",
"rgb": {
"r": 31,
"g": 44,
"b": 143
},
"hsl": {
"h": 233.036,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.35688,
"c": 0.1619,
"h": 269.8
},
"luminance": 0.04076
}Semantic roles & 50–950 ramp
primary
#1F2C8F
secondary
#BCAF4E
accent
#D440E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80