#2C0F5C#2C0F5C
#2C0F5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.125 H 293.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2C0F5C |
|---|---|
| RGB | rgb(44, 15, 92) |
| HSL | hsl(263, 72%, 21%) |
| HSV | hsv(263, 84%, 36%) |
| CMYK | cmyk(52.2%, 83.7%, 0%, 63.9%) |
| CIE-LAB | lab(13.53, 33.17, -40.14) |
| CIE-LCH | lch(13.53, 52.07, 309.56°) |
| OKLab | oklab(26.96% 0.0491 -0.1152) |
| OKLCH | oklch(26.96% 0.125 293.1) |
| XYZ | xyz(3.1408, 1.6497, 10.2761) |
| Luminance | 0.0165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.42
Darkblue (survey)
#030764
ΔE00 5.38
Midnight Blue
#191970
ΔE00 5.50
Dark Blue
#00035B
ΔE00 5.58
Dark Royal Blue
#02066F
ΔE00 6.12
Night Blue
#040348
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C0F5C #3F5C0F
analogous
#0F185C #2C0F5C #520F5C
triadic
#2C0F5C #5C2C0F #0F5C2C
tetradic
#2C0F5C #5C0F18 #3F5C0F #0F5C52
square
#2C0F5C #5C0F18 #3F5C0F #0F5C52
split-complementary
#2C0F5C #5C520F #185C0F
monochromatic
#0D041A #130627 #2C0F5C #451891 #5E20C5
Accessibility & contrast
On white
15.79
#2C0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#2C0F5C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C0F5C
15.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C0F5C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C0F5C | 1.00 | 15.79 | 1.33 | 15.79 |
| #FFFFFF | 15.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2c0f5c; /* rgb */ color: rgb(44, 15, 92); /* oklch */ color: oklch(27.0% 0.125 293.1);
Tailwind
colors: {
custom: {
50: '#6b518b',
500: '#2c0f5c',
950: '#000000',
},
}SCSS
$custom: #2c0f5c; $custom-light: #6b518b; $custom-dark: #000000;
JSON
{
"hex": "#2c0f5c",
"rgb": {
"r": 44,
"g": 15,
"b": 92
},
"hsl": {
"h": 262.597,
"s": 71.963,
"l": 20.98
},
"oklch": {
"l": 0.26964,
"c": 0.12526,
"h": 293.1
},
"luminance": 0.0165
}Semantic roles & 50–950 ramp
primary
#2C0F5C
secondary
#709531
accent
#EF39AA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D