#1F2C8E#1F2C8E
#1F2C8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.161 H 269.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C8E |
|---|---|
| RGB | rgb(31, 44, 142) |
| HSL | hsl(233, 64%, 34%) |
| HSV | hsv(233, 78%, 56%) |
| CMYK | cmyk(78.2%, 69%, 0%, 44.3%) |
| CIE-LAB | lab(23.82, 31.21, -55.48) |
| CIE-LCH | lch(23.82, 63.65, 299.36°) |
| OKLab | oklab(35.59% -0.0006 -0.1606) |
| OKLCH | oklch(35.59% 0.161 269.8) |
| XYZ | xyz(6.3466, 4.0450, 26.0322) |
| Luminance | 0.0405 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.03
Royal
#0C1793
ΔE00 5.34
Midnight Blue
#191970
ΔE00 6.32
Darkslateblue
#483D8B
ΔE00 7.16
Blueberry
#464196
ΔE00 7.19
Cobalt Blue
#030AA7
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C8E #8E811F
analogous
#1F648E #1F2C8E #4A1F8E
triadic
#1F2C8E #8E1F2C #2C8E1F
tetradic
#1F2C8E #8E1F64 #8E811F #1F8E4A
square
#1F2C8E #8E1F64 #8E811F #1F8E4A
split-complementary
#1F2C8E #8E4A1F #648E1F
monochromatic
#090D2A #141C5C #1F2C8E #2A3CC0 #4F5FD9
Accessibility & contrast
On white
11.61
#1F2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#1F2C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C8E
11.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C8E | 1.00 | 11.61 | 1.81 | 11.61 |
| #FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2c8e; /* rgb */ color: rgb(31, 44, 142); /* oklch */ color: oklch(35.6% 0.161 269.8);
Tailwind
colors: {
custom: {
50: '#6e65b0',
500: '#1f2c8e',
950: '#000000',
},
}SCSS
$custom: #1f2c8e; $custom-light: #6e65b0; $custom-dark: #000000;
JSON
{
"hex": "#1f2c8e",
"rgb": {
"r": 31,
"g": 44,
"b": 142
},
"hsl": {
"h": 232.973,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.35586,
"c": 0.16056,
"h": 269.8
},
"luminance": 0.04046
}Semantic roles & 50–950 ramp
primary
#1F2C8E
secondary
#BBAF4D
accent
#D441E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80