#2C1946#2C1946
#2C1946 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.082 H 300.4°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1946 |
|---|---|
| RGB | rgb(44, 25, 70) |
| HSL | hsl(265, 47%, 19%) |
| HSV | hsv(265, 64%, 27%) |
| CMYK | cmyk(37.1%, 64.3%, 0%, 72.5%) |
| CIE-LAB | lab(13.67, 20.65, -24.89) |
| CIE-LCH | lch(13.67, 32.34, 309.68°) |
| OKLab | oklab(26.45% 0.0413 -0.0705) |
| OKLCH | oklch(26.45% 0.082 300.4) |
| XYZ | xyz(2.4916, 1.6729, 5.9848) |
| Luminance | 0.0167 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 6.21
Midnight Purple
#280137
ΔE00 6.33
Very Dark Purple
#2A0134
ΔE00 6.76
Dark Violet
#34013F
ΔE00 6.87
Deep Purple
#36013F
ΔE00 7.10
Dark Indigo
#1F0954
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1946 #334619
analogous
#191C46 #2C1946 #421946
triadic
#2C1946 #462C19 #19462C
tetradic
#2C1946 #46191C #334619 #194642
square
#2C1946 #46191C #334619 #194642
split-complementary
#2C1946 #464219 #1C4619
monochromatic
#0E0817 #100919 #2C1946 #482973 #6539A0
Accessibility & contrast
On white
15.74
#2C1946 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2C1946 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1946
15.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1946 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1946 | 1.00 | 15.74 | 1.33 | 15.74 |
| #FFFFFF | 15.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#052347
Deuteranopia (green-blind)
#0C2345
Tritanopia (blue-blind)
#27222C
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2c1946; /* rgb */ color: rgb(44, 25, 70); /* oklch */ color: oklch(26.4% 0.082 300.4);
Tailwind
colors: {
custom: {
50: '#67567a',
500: '#2c1946',
950: '#000000',
},
}SCSS
$custom: #2c1946; $custom-light: #67567a; $custom-dark: #000000;
JSON
{
"hex": "#2c1946",
"rgb": {
"r": 44,
"g": 25,
"b": 70
},
"hsl": {
"h": 265.333,
"s": 47.368,
"l": 18.627
},
"oklch": {
"l": 0.26449,
"c": 0.08169,
"h": 300.4
},
"luminance": 0.01673
}Semantic roles & 50–950 ramp
primary
#2C1946
secondary
#627C3E
accent
#D7519E
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B