#2C188A#2C188A
#2C188A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.173 H 279.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2C188A |
|---|---|
| RGB | rgb(44, 24, 138) |
| HSL | hsl(251, 70%, 32%) |
| HSV | hsv(251, 83%, 54%) |
| CMYK | cmyk(68.1%, 82.6%, 0%, 45.9%) |
| CIE-LAB | lab(20.14, 42.78, -59.03) |
| CIE-LCH | lch(20.14, 72.90, 305.94°) |
| OKLab | oklab(33.07% 0.0277 -0.1704) |
| OKLCH | oklch(33.07% 0.173 279.2) |
| XYZ | xyz(5.9513, 3.0232, 24.3097) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.71
Indigo (survey)
#380282
ΔE00 3.77
Darkblue
#00008B
ΔE00 4.49
Cobalt Blue
#030AA7
ΔE00 4.63
Midnight Blue
#191970
ΔE00 4.74
Navy
#000080
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C188A #768A18
analogous
#183D8A #2C188A #65188A
triadic
#2C188A #8A2C18 #188A2C
tetradic
#2C188A #8A183D #768A18 #188A65
square
#2C188A #8A183D #768A18 #188A65
split-complementary
#2C188A #8A6518 #3D8A18
monochromatic
#0B0622 #1B0F56 #2C188A #3D21BE #5B3FDE
Accessibility & contrast
On white
13.09
#2C188A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2C188A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C188A
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C188A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C188A | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c188a; /* rgb */ color: rgb(44, 24, 138); /* oklch */ color: oklch(33.1% 0.173 279.2);
Tailwind
colors: {
custom: {
50: '#7459ad',
500: '#2c188a',
950: '#000000',
},
}SCSS
$custom: #2c188a; $custom-light: #7459ad; $custom-dark: #000000;
JSON
{
"hex": "#2c188a",
"rgb": {
"r": 44,
"g": 24,
"b": 138
},
"hsl": {
"h": 250.526,
"s": 70.37,
"l": 31.765
},
"oklch": {
"l": 0.33073,
"c": 0.17269,
"h": 279.2
},
"luminance": 0.03024
}Semantic roles & 50–950 ramp
primary
#2C188A
secondary
#A7BD40
accent
#ED3BCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F