#2C1B8E#2C1B8E
#2C1B8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.175 H 278.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1B8E |
|---|---|
| RGB | rgb(44, 27, 142) |
| HSL | hsl(249, 68%, 33%) |
| HSV | hsv(249, 81%, 56%) |
| CMYK | cmyk(69%, 81%, 0%, 44.3%) |
| CIE-LAB | lab(21.10, 42.55, -59.93) |
| CIE-LCH | lch(21.10, 73.50, 305.38°) |
| OKLab | oklab(33.88% 0.025 -0.1731) |
| OKLCH | oklch(33.88% 0.175 278.2) |
| XYZ | xyz(6.3115, 3.2718, 25.8848) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.53
Cobalt Blue
#030AA7
ΔE00 4.42
Indigo (survey)
#380282
ΔE00 4.47
Royal Blue (survey)
#0504AA
ΔE00 4.89
Darkblue
#00008B
ΔE00 4.97
Midnight Blue
#191970
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1B8E #7D8E1B
analogous
#1B438E #2C1B8E #651B8E
triadic
#2C1B8E #8E2C1B #1B8E2C
tetradic
#2C1B8E #8E1B43 #7D8E1B #1B8E65
square
#2C1B8E #8E1B43 #7D8E1B #1B8E65
split-complementary
#2C1B8E #8E651B #438E1B
monochromatic
#0C0727 #1C115B #2C1B8E #3C25C1 #5D47DC
Accessibility & contrast
On white
12.69
#2C1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2C1B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1B8E
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1B8E | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c1b8e; /* rgb */ color: rgb(44, 27, 142); /* oklch */ color: oklch(33.9% 0.175 278.2);
Tailwind
colors: {
custom: {
50: '#755bb0',
500: '#2c1b8e',
950: '#000000',
},
}SCSS
$custom: #2c1b8e; $custom-light: #755bb0; $custom-dark: #000000;
JSON
{
"hex": "#2c1b8e",
"rgb": {
"r": 44,
"g": 27,
"b": 142
},
"hsl": {
"h": 248.87,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.33877,
"c": 0.17492,
"h": 278.2
},
"luminance": 0.03272
}Semantic roles & 50–950 ramp
primary
#2C1B8E
secondary
#ACBE47
accent
#EB3DD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980