#2D198C#2D198C
#2D198C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.174 H 279.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2D198C |
|---|---|
| RGB | rgb(45, 25, 140) |
| HSL | hsl(250, 70%, 32%) |
| HSV | hsv(250, 82%, 55%) |
| CMYK | cmyk(67.9%, 82.1%, 0%, 45.1%) |
| CIE-LAB | lab(20.62, 43.02, -59.47) |
| CIE-LCH | lch(20.62, 73.40, 305.88°) |
| OKLab | oklab(33.5% 0.0282 -0.1717) |
| OKLCH | oklch(33.5% 0.174 279.3) |
| XYZ | xyz(6.1619, 3.1461, 25.0884) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.69
Indigo (survey)
#380282
ΔE00 3.97
Cobalt Blue
#030AA7
ΔE00 4.51
Darkblue
#00008B
ΔE00 4.70
Royal Blue (survey)
#0504AA
ΔE00 4.95
Midnight Blue
#191970
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D198C #788C19
analogous
#193E8C #2D198C #67198C
triadic
#2D198C #8C2D19 #198C2D
tetradic
#2D198C #8C193E #788C19 #198C67
square
#2D198C #8C193E #788C19 #198C67
split-complementary
#2D198C #8C6719 #3E8C19
monochromatic
#0C0624 #1C1058 #2D198C #3E22C0 #5D42DD
Accessibility & contrast
On white
12.89
#2D198C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2D198C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D198C
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D198C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D198C | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2d198c; /* rgb */ color: rgb(45, 25, 140); /* oklch */ color: oklch(33.5% 0.174 279.3);
Tailwind
colors: {
custom: {
50: '#755aaf',
500: '#2d198c',
950: '#000000',
},
}SCSS
$custom: #2d198c; $custom-light: #755aaf; $custom-dark: #000000;
JSON
{
"hex": "#2d198c",
"rgb": {
"r": 45,
"g": 25,
"b": 140
},
"hsl": {
"h": 250.435,
"s": 69.697,
"l": 32.353
},
"oklch": {
"l": 0.33497,
"c": 0.17403,
"h": 279.3
},
"luminance": 0.03147
}Semantic roles & 50–950 ramp
primary
#2D198C
secondary
#A9BE43
accent
#ED3BCE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F