#2C156F#2C156F
#2C156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.142 H 285.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2C156F |
|---|---|
| RGB | rgb(44, 21, 111) |
| HSL | hsl(255, 68%, 26%) |
| HSV | hsv(255, 81%, 44%) |
| CMYK | cmyk(60.4%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.60, 35.91, -47.65) |
| CIE-LCH | lch(16.60, 59.66, 307.00°) |
| OKLab | oklab(29.72% 0.0382 -0.1372) |
| OKLCH | oklch(29.72% 0.142 285.5) |
| XYZ | xyz(4.1752, 2.2193, 15.2442) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Indigo (survey)
#380282
ΔE00 4.45
Dark Royal Blue
#02066F
ΔE00 4.64
Darkblue (survey)
#030764
ΔE00 4.86
Deep Blue
#040273
ΔE00 4.96
Dark Indigo
#1F0954
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C156F #586F15
analogous
#152B6F #2C156F #59156F
triadic
#2C156F #6F2C15 #156F2C
tetradic
#2C156F #6F152B #586F15 #156F59
square
#2C156F #6F152B #586F15 #156F59
split-complementary
#2C156F #6F5915 #2B6F15
monochromatic
#0A051A #180B3C #2C156F #401FA2 #5528D6
Accessibility & contrast
On white
14.54
#2C156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2C156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C156F
14.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C156F | 1.00 | 14.54 | 1.44 | 14.54 |
| #FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#092F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c156f; /* rgb */ color: rgb(44, 21, 111); /* oklch */ color: oklch(29.7% 0.142 285.5);
Tailwind
colors: {
custom: {
50: '#6e5699',
500: '#2c156f',
950: '#000000',
},
}SCSS
$custom: #2c156f; $custom-light: #6e5699; $custom-dark: #000000;
JSON
{
"hex": "#2c156f",
"rgb": {
"r": 44,
"g": 21,
"b": 111
},
"hsl": {
"h": 255.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29715,
"c": 0.14244,
"h": 285.5
},
"luminance": 0.0222
}Semantic roles & 50–950 ramp
primary
#2C156F
secondary
#8AA53A
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E