#1F2C8D#1F2C8D
#1F2C8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.159 H 269.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C8D |
|---|---|
| RGB | rgb(31, 44, 141) |
| HSL | hsl(233, 64%, 34%) |
| HSV | hsv(233, 78%, 55%) |
| CMYK | cmyk(78%, 68.8%, 0%, 44.7%) |
| CIE-LAB | lab(23.72, 30.84, -55.02) |
| CIE-LCH | lch(23.72, 63.07, 299.27°) |
| OKLab | oklab(35.49% -0.0005 -0.1592) |
| OKLCH | oklch(35.49% 0.159 269.8) |
| XYZ | xyz(6.2718, 4.0151, 25.6386) |
| Luminance | 0.0402 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.14
Royal
#0C1793
ΔE00 5.40
Midnight Blue
#191970
ΔE00 6.23
Darkslateblue
#483D8B
ΔE00 7.14
Blueberry
#464196
ΔE00 7.21
Cobalt Blue
#030AA7
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C8D #8D801F
analogous
#1F638D #1F2C8D #491F8D
triadic
#1F2C8D #8D1F2C #2C8D1F
tetradic
#1F2C8D #8D1F63 #8D801F #1F8D49
square
#1F2C8D #8D1F63 #8D801F #1F8D49
split-complementary
#1F2C8D #8D491F #638D1F
monochromatic
#090D29 #141C5B #1F2C8D #2A3CBF #4E5FD8
Accessibility & contrast
On white
11.65
#1F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F2C8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C8D
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C8D | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2c8d; /* rgb */ color: rgb(31, 44, 141); /* oklch */ color: oklch(35.5% 0.159 269.8);
Tailwind
colors: {
custom: {
50: '#6e65af',
500: '#1f2c8d',
950: '#000000',
},
}SCSS
$custom: #1f2c8d; $custom-light: #6e65af; $custom-dark: #000000;
JSON
{
"hex": "#1f2c8d",
"rgb": {
"r": 31,
"g": 44,
"b": 141
},
"hsl": {
"h": 232.909,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35485,
"c": 0.15922,
"h": 269.8
},
"luminance": 0.04016
}Semantic roles & 50–950 ramp
primary
#1F2C8D
secondary
#BBAE4D
accent
#D341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F