#2C1F96#2C1F96
#2C1F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.181 H 276.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F96 |
|---|---|
| RGB | rgb(44, 31, 150) |
| HSL | hsl(247, 66%, 35%) |
| HSV | hsv(247, 79%, 59%) |
| CMYK | cmyk(70.7%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(22.71, 43.04, -62.22) |
| CIE-LCH | lch(22.71, 75.66, 304.67°) |
| OKLab | oklab(35.27% 0.0208 -0.1798) |
| OKLCH | oklch(35.27% 0.181 276.6) |
| XYZ | xyz(7.0319, 3.7168, 29.1951) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.79
Cobalt Blue
#030AA7
ΔE00 4.21
Indigo Blue
#3A18B1
ΔE00 4.23
Royal Blue (survey)
#0504AA
ΔE00 4.70
Ultramarine
#2000B1
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F96 #89961F
analogous
#1F4D96 #2C1F96 #681F96
triadic
#2C1F96 #962C1F #1F962C
tetradic
#2C1F96 #961F4D #89961F #1F9668
square
#2C1F96 #961F4D #89961F #1F9668
split-complementary
#2C1F96 #96681F #4D961F
monochromatic
#0E0A31 #1D1563 #2C1F96 #3B29C9 #6354DC
Accessibility & contrast
On white
12.05
#2C1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2C1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F96
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F96 | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c1f96; /* rgb */ color: rgb(44, 31, 150); /* oklch */ color: oklch(35.3% 0.181 276.6);
Tailwind
colors: {
custom: {
50: '#765eb6',
500: '#2c1f96',
950: '#000000',
},
}SCSS
$custom: #2c1f96; $custom-light: #765eb6; $custom-dark: #000000;
JSON
{
"hex": "#2c1f96",
"rgb": {
"r": 44,
"g": 31,
"b": 150
},
"hsl": {
"h": 246.555,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.35267,
"c": 0.18104,
"h": 276.6
},
"luminance": 0.03717
}Semantic roles & 50–950 ramp
primary
#2C1F96
secondary
#B3BF52
accent
#E93FD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980