#2C138E#2C138E
#2C138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.181 H 279.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2C138E |
|---|---|
| RGB | rgb(44, 19, 142) |
| HSL | hsl(252, 76%, 32%) |
| HSV | hsv(252, 87%, 56%) |
| CMYK | cmyk(69%, 86.6%, 0%, 44.3%) |
| CIE-LAB | lab(19.86, 46.20, -61.99) |
| CIE-LCH | lch(19.86, 77.31, 306.70°) |
| OKLab | oklab(33.02% 0.0286 -0.179) |
| OKLCH | oklch(33.02% 0.181 279.1) |
| XYZ | xyz(6.1525, 2.9537, 25.8318) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.66
Indigo (survey)
#380282
ΔE00 3.31
Darkblue
#00008B
ΔE00 3.88
Cobalt Blue
#030AA7
ΔE00 3.89
Royal Blue (survey)
#0504AA
ΔE00 4.24
Navy
#000080
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C138E #758E13
analogous
#13388E #2C138E #6A138E
triadic
#2C138E #8E2C13 #138E2C
tetradic
#2C138E #8E1338 #758E13 #138E6A
square
#2C138E #8E1338 #758E13 #138E6A
split-complementary
#2C138E #8E6A13 #388E13
monochromatic
#0B0522 #1B0C58 #2C138E #3D1AC4 #5A37E4
Accessibility & contrast
On white
13.20
#2C138E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2C138E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C138E
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C138E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C138E | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c138e; /* rgb */ color: rgb(44, 19, 142); /* oklch */ color: oklch(33.0% 0.181 279.1);
Tailwind
colors: {
custom: {
50: '#7557b0',
500: '#2c138e',
950: '#000000',
},
}SCSS
$custom: #2c138e; $custom-light: #7557b0; $custom-dark: #000000;
JSON
{
"hex": "#2c138e",
"rgb": {
"r": 44,
"g": 19,
"b": 142
},
"hsl": {
"h": 252.195,
"s": 76.398,
"l": 31.569
},
"oklch": {
"l": 0.33019,
"c": 0.18124,
"h": 279.1
},
"luminance": 0.02954
}Semantic roles & 50–950 ramp
primary
#2C138E
secondary
#A7C23B
accent
#F335CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880