#2C1B87#2C1B87
#2C1B87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 279.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B87 |
|---|---|
| RGB | rgb(44, 27, 135) |
| HSL | hsl(249, 67%, 32%) |
| HSV | hsv(249, 80%, 53%) |
| CMYK | cmyk(67.4%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(20.31, 40.35, -56.85) |
| CIE-LCH | lch(20.31, 69.71, 305.36°) |
| OKLab | oklab(33.1% 0.027 -0.1641) |
| OKLCH | oklch(33.1% 0.166 279.4) |
| XYZ | xyz(5.8024, 3.0681, 23.2034) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.01
Midnight Blue
#191970
ΔE00 4.24
Indigo (survey)
#380282
ΔE00 4.24
Darkblue
#00008B
ΔE00 5.04
Cobalt Blue
#030AA7
ΔE00 5.26
Navy
#000080
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B87 #76871B
analogous
#1B4087 #2C1B87 #621B87
triadic
#2C1B87 #872C1B #1B872C
tetradic
#2C1B87 #871B40 #76871B #1B8762
square
#2C1B87 #871B40 #76871B #1B8762
split-complementary
#2C1B87 #87621B #40871B
monochromatic
#0B0721 #1B1154 #2C1B87 #3D25BA #5B43D9
Accessibility & contrast
On white
13.01
#2C1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2C1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B87
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B87 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c1b87; /* rgb */ color: rgb(44, 27, 135); /* oklch */ color: oklch(33.1% 0.166 279.4);
Tailwind
colors: {
custom: {
50: '#735bab',
500: '#2c1b87',
950: '#000000',
},
}SCSS
$custom: #2c1b87; $custom-light: #735bab; $custom-dark: #000000;
JSON
{
"hex": "#2c1b87",
"rgb": {
"r": 44,
"g": 27,
"b": 135
},
"hsl": {
"h": 249.444,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.33097,
"c": 0.16636,
"h": 279.4
},
"luminance": 0.03069
}Semantic roles & 50–950 ramp
primary
#2C1B87
secondary
#A7BA44
accent
#EA3ECF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F