#2C1F8E#2C1F8E
#2C1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 277.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F8E |
|---|---|
| RGB | rgb(44, 31, 142) |
| HSL | hsl(247, 64%, 34%) |
| HSV | hsv(247, 78%, 56%) |
| CMYK | cmyk(69%, 78.2%, 0%, 44.3%) |
| CIE-LAB | lab(21.83, 40.47, -58.73) |
| CIE-LCH | lch(21.83, 71.32, 304.57°) |
| OKLab | oklab(34.39% 0.0229 -0.1697) |
| OKLCH | oklch(34.39% 0.171 277.7) |
| XYZ | xyz(6.4096, 3.4679, 25.9175) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.84
Cobalt Blue
#030AA7
ΔE00 4.92
Midnight Blue
#191970
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 5.24
Indigo Blue
#3A18B1
ΔE00 5.30
Royal Blue (survey)
#0504AA
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F8E #818E1F
analogous
#1F4A8E #2C1F8E #641F8E
triadic
#2C1F8E #8E2C1F #1F8E2C
tetradic
#2C1F8E #8E1F4A #818E1F #1F8E64
square
#2C1F8E #8E1F4A #818E1F #1F8E64
split-complementary
#2C1F8E #8E641F #4A8E1F
monochromatic
#0D092A #1C145C #2C1F8E #3C2AC0 #5F4FD9
Accessibility & contrast
On white
12.40
#2C1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2C1F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F8E
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F8E | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2c1f8e; /* rgb */ color: rgb(44, 31, 142); /* oklch */ color: oklch(34.4% 0.171 277.7);
Tailwind
colors: {
custom: {
50: '#745db0',
500: '#2c1f8e',
950: '#000000',
},
}SCSS
$custom: #2c1f8e; $custom-light: #745db0; $custom-dark: #000000;
JSON
{
"hex": "#2c1f8e",
"rgb": {
"r": 44,
"g": 31,
"b": 142
},
"hsl": {
"h": 247.027,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.34385,
"c": 0.17121,
"h": 277.7
},
"luminance": 0.03468
}Semantic roles & 50–950 ramp
primary
#2C1F8E
secondary
#AFBB4D
accent
#E741D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980