#2C1B9E#2C1B9E
#2C1B9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.194 H 276.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B9E |
|---|---|
| RGB | rgb(44, 27, 158) |
| HSL | hsl(248, 71%, 36%) |
| HSV | hsv(248, 83%, 62%) |
| CMYK | cmyk(72.2%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(22.96, 47.50, -66.73) |
| CIE-LCH | lch(22.96, 81.91, 305.44°) |
| OKLab | oklab(35.71% 0.0204 -0.1929) |
| OKLCH | oklch(35.71% 0.194 276) |
| XYZ | xyz(7.6002, 3.7872, 32.6716) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.98
Indigo Blue
#3A18B1
ΔE00 3.07
Cobalt Blue
#030AA7
ΔE00 3.21
Royal Blue (survey)
#0504AA
ΔE00 3.61
Ultramarine
#2000B1
ΔE00 3.69
True Blue
#010FCC
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B9E #8D9E1B
analogous
#1B4C9E #2C1B9E #6E1B9E
triadic
#2C1B9E #9E2C1B #1B9E2C
tetradic
#2C1B9E #9E1B4C #8D9E1B #1B9E6E
square
#2C1B9E #9E1B4C #8D9E1B #1B9E6E
split-complementary
#2C1B9E #9E6E1B #4C9E1B
monochromatic
#0F0935 #1D126A #2C1B9E #3B24D2 #6552E1
Accessibility & contrast
On white
11.95
#2C1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2C1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B9E
11.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B9E | 1.00 | 11.95 | 1.76 | 11.95 |
| #FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2c1b9e; /* rgb */ color: rgb(44, 27, 158); /* oklch */ color: oklch(35.7% 0.194 276.0);
Tailwind
colors: {
custom: {
50: '#785cbc',
500: '#2c1b9e',
950: '#000000',
},
}SCSS
$custom: #2c1b9e; $custom-light: #785cbc; $custom-dark: #000000;
JSON
{
"hex": "#2c1b9e",
"rgb": {
"r": 44,
"g": 27,
"b": 158
},
"hsl": {
"h": 247.786,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.35705,
"c": 0.19395,
"h": 276
},
"luminance": 0.03788
}Semantic roles & 50–950 ramp
primary
#2C1B9E
secondary
#B5C451
accent
#EE3AD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981