#2C158E#2C158E
#2C158E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.180 H 278.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2C158E |
|---|---|
| RGB | rgb(44, 21, 142) |
| HSL | hsl(251, 74%, 32%) |
| HSV | hsv(251, 85%, 56%) |
| CMYK | cmyk(69%, 85.2%, 0%, 44.3%) |
| CIE-LAB | lab(20.14, 45.36, -61.52) |
| CIE-LCH | lch(20.14, 76.43, 306.40°) |
| OKLab | oklab(33.21% 0.0278 -0.1776) |
| OKLCH | oklch(33.21% 0.18 278.9) |
| XYZ | xyz(6.1878, 3.0243, 25.8436) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.56
Indigo (survey)
#380282
ΔE00 3.55
Cobalt Blue
#030AA7
ΔE00 3.97
Darkblue
#00008B
ΔE00 4.10
Royal Blue (survey)
#0504AA
ΔE00 4.35
Navy
#000080
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C158E #778E15
analogous
#153B8E #2C158E #69158E
triadic
#2C158E #8E2C15 #158E2C
tetradic
#2C158E #8E153B #778E15 #158E69
square
#2C158E #8E153B #778E15 #158E69
split-complementary
#2C158E #8E6915 #3B8E15
monochromatic
#0B0523 #1B0D59 #2C158E #3D1DC3 #5B3BE2
Accessibility & contrast
On white
13.08
#2C158E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2C158E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C158E
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C158E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C158E | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c158e; /* rgb */ color: rgb(44, 21, 142); /* oklch */ color: oklch(33.2% 0.180 278.9);
Tailwind
colors: {
custom: {
50: '#7558b0',
500: '#2c158e',
950: '#000000',
},
}SCSS
$custom: #2c158e; $custom-light: #7558b0; $custom-dark: #000000;
JSON
{
"hex": "#2c158e",
"rgb": {
"r": 44,
"g": 21,
"b": 142
},
"hsl": {
"h": 251.405,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.33213,
"c": 0.17981,
"h": 278.9
},
"luminance": 0.03025
}Semantic roles & 50–950 ramp
primary
#2C158E
secondary
#A8C23D
accent
#F137CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980