#2C197B#2C197B
#2C197B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 281.9°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2C197B |
|---|---|
| RGB | rgb(44, 25, 123) |
| HSL | hsl(252, 66%, 29%) |
| HSV | hsv(252, 80%, 48%) |
| CMYK | cmyk(64.2%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(18.63, 37.59, -52.03) |
| CIE-LCH | lch(18.63, 64.19, 305.84°) |
| OKLab | oklab(31.53% 0.0317 -0.1501) |
| OKLCH | oklch(31.53% 0.153 281.9) |
| XYZ | xyz(4.9604, 2.6604, 18.9872) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.02
Indigo (survey)
#380282
ΔE00 4.07
Royal
#0C1793
ΔE00 4.38
Dark Royal Blue
#02066F
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.26
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C197B #687B19
analogous
#19377B #2C197B #5D197B
triadic
#2C197B #7B2C19 #197B2C
tetradic
#2C197B #7B1937 #687B19 #197B5D
square
#2C197B #7B1937 #687B19 #197B5D
split-complementary
#2C197B #7B5D19 #377B19
monochromatic
#090519 #1A0F48 #2C197B #3E23AE #5738D7
Accessibility & contrast
On white
13.71
#2C197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2C197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C197B
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C197B | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2c197b; /* rgb */ color: rgb(44, 25, 123); /* oklch */ color: oklch(31.5% 0.153 281.9);
Tailwind
colors: {
custom: {
50: '#7159a2',
500: '#2c197b',
950: '#000000',
},
}SCSS
$custom: #2c197b; $custom-light: #7159a2; $custom-dark: #000000;
JSON
{
"hex": "#2c197b",
"rgb": {
"r": 44,
"g": 25,
"b": 123
},
"hsl": {
"h": 251.633,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.31525,
"c": 0.15341,
"h": 281.9
},
"luminance": 0.02661
}Semantic roles & 50–950 ramp
primary
#2C197B
secondary
#9AAF40
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F