#2C1269#2C1269
#2C1269 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 287.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1269 |
|---|---|
| RGB | rgb(44, 18, 105) |
| HSL | hsl(258, 71%, 24%) |
| HSV | hsv(258, 83%, 41%) |
| CMYK | cmyk(58.1%, 82.9%, 0%, 58.8%) |
| CIE-LAB | lab(15.42, 35.59, -45.66) |
| CIE-LCH | lch(15.42, 57.89, 307.93°) |
| OKLab | oklab(28.7% 0.0423 -0.1314) |
| OKLCH | oklch(28.7% 0.138 287.9) |
| XYZ | xyz(3.8041, 1.9878, 13.5451) |
| Luminance | 0.0199 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.71
Dark Indigo
#1F0954
ΔE00 3.94
Darkblue (survey)
#030764
ΔE00 4.62
Dark Royal Blue
#02066F
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 4.86
Deep Blue
#040273
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1269 #4F6912
analogous
#122469 #2C1269 #581269
triadic
#2C1269 #692C12 #12692C
tetradic
#2C1269 #691224 #4F6912 #126958
square
#2C1269 #691224 #4F6912 #126958
split-complementary
#2C1269 #695812 #246912
monochromatic
#0B041A #160935 #2C1269 #421B9D #5824D1
Accessibility & contrast
On white
15.03
#2C1269 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2C1269 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1269
15.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1269 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1269 | 1.00 | 15.03 | 1.40 | 15.03 |
| #FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#122B3D
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2c1269; /* rgb */ color: rgb(44, 18, 105); /* oklch */ color: oklch(28.7% 0.138 287.9);
Tailwind
colors: {
custom: {
50: '#6d5495',
500: '#2c1269',
950: '#000000',
},
}SCSS
$custom: #2c1269; $custom-light: #6d5495; $custom-dark: #000000;
JSON
{
"hex": "#2c1269",
"rgb": {
"r": 44,
"g": 18,
"b": 105
},
"hsl": {
"h": 257.931,
"s": 70.732,
"l": 24.118
},
"oklch": {
"l": 0.28701,
"c": 0.13806,
"h": 287.9
},
"luminance": 0.01988
}Semantic roles & 50–950 ramp
primary
#2C1269
secondary
#81A136
accent
#ED3AB8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7A787E