#2C198B#2C198B
#2C198B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.173 H 279.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2C198B |
|---|---|
| RGB | rgb(44, 25, 139) |
| HSL | hsl(250, 70%, 32%) |
| HSV | hsv(250, 82%, 55%) |
| CMYK | cmyk(68.3%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(20.42, 42.61, -59.19) |
| CIE-LCH | lch(20.42, 72.93, 305.75°) |
| OKLab | oklab(33.3% 0.0269 -0.1709) |
| OKLCH | oklch(33.3% 0.173 279) |
| XYZ | xyz(6.0450, 3.0943, 24.6998) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.64
Indigo (survey)
#380282
ΔE00 3.99
Cobalt Blue
#030AA7
ΔE00 4.58
Darkblue
#00008B
ΔE00 4.64
Midnight Blue
#191970
ΔE00 4.82
Royal Blue (survey)
#0504AA
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C198B #788B19
analogous
#193F8B #2C198B #65198B
triadic
#2C198B #8B2C19 #198B2C
tetradic
#2C198B #8B193F #788B19 #198B65
square
#2C198B #8B193F #788B19 #198B65
split-complementary
#2C198B #8B6519 #3F8B19
monochromatic
#0B0623 #1C1057 #2C198B #3C22BF #5B41DD
Accessibility & contrast
On white
12.97
#2C198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2C198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C198B
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C198B | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c198b; /* rgb */ color: rgb(44, 25, 139); /* oklch */ color: oklch(33.3% 0.173 279.0);
Tailwind
colors: {
custom: {
50: '#745aae',
500: '#2c198b',
950: '#000000',
},
}SCSS
$custom: #2c198b; $custom-light: #745aae; $custom-dark: #000000;
JSON
{
"hex": "#2c198b",
"rgb": {
"r": 44,
"g": 25,
"b": 139
},
"hsl": {
"h": 250,
"s": 69.512,
"l": 32.157
},
"oklch": {
"l": 0.33302,
"c": 0.17304,
"h": 279
},
"luminance": 0.03095
}Semantic roles & 50–950 ramp
primary
#2C198B
secondary
#A9BE42
accent
#EC3BCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F