#1F2C8C#1F2C8C
#1F2C8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.158 H 269.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C8C |
|---|---|
| RGB | rgb(31, 44, 140) |
| HSL | hsl(233, 64%, 34%) |
| HSV | hsv(233, 78%, 55%) |
| CMYK | cmyk(77.9%, 68.6%, 0%, 45.1%) |
| CIE-LAB | lab(23.62, 30.46, -54.56) |
| CIE-LCH | lch(23.62, 62.48, 299.18°) |
| OKLab | oklab(35.38% -0.0004 -0.1579) |
| OKLCH | oklch(35.38% 0.158 269.9) |
| XYZ | xyz(6.1978, 3.9854, 25.2485) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.25
Royal
#0C1793
ΔE00 5.46
Midnight Blue
#191970
ΔE00 6.15
Darkslateblue
#483D8B
ΔE00 7.13
Blueberry
#464196
ΔE00 7.23
Cobalt Blue
#030AA7
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C8C #8C7F1F
analogous
#1F628C #1F2C8C #481F8C
triadic
#1F2C8C #8C1F2C #2C8C1F
tetradic
#1F2C8C #8C1F62 #8C7F1F #1F8C48
square
#1F2C8C #8C1F62 #8C7F1F #1F8C48
split-complementary
#1F2C8C #8C481F #628C1F
monochromatic
#090D28 #141C5A #1F2C8C #2A3CBE #4E5ED8
Accessibility & contrast
On white
11.68
#1F2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F2C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C8C
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C8C | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2c8c; /* rgb */ color: rgb(31, 44, 140); /* oklch */ color: oklch(35.4% 0.158 269.9);
Tailwind
colors: {
custom: {
50: '#6d65af',
500: '#1f2c8c',
950: '#000000',
},
}SCSS
$custom: #1f2c8c; $custom-light: #6d65af; $custom-dark: #000000;
JSON
{
"hex": "#1f2c8c",
"rgb": {
"r": 31,
"g": 44,
"b": 140
},
"hsl": {
"h": 232.844,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.35384,
"c": 0.15787,
"h": 269.9
},
"luminance": 0.03986
}Semantic roles & 50–950 ramp
primary
#1F2C8C
secondary
#BBAD4C
accent
#D341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F