#2D198F#2D198F
#2D198F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.178 H 278.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2D198F |
|---|---|
| RGB | rgb(45, 25, 143) |
| HSL | hsl(250, 70%, 33%) |
| HSV | hsv(250, 83%, 56%) |
| CMYK | cmyk(68.5%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(20.96, 43.94, -60.77) |
| CIE-LCH | lch(20.96, 74.99, 305.87°) |
| OKLab | oklab(33.84% 0.0272 -0.1755) |
| OKLCH | oklch(33.84% 0.178 278.8) |
| XYZ | xyz(6.3862, 3.2358, 26.2693) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.56
Indigo (survey)
#380282
ΔE00 4.14
Cobalt Blue
#030AA7
ΔE00 4.17
Royal Blue (survey)
#0504AA
ΔE00 4.61
Darkblue
#00008B
ΔE00 4.73
Indigo Blue
#3A18B1
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D198F #7B8F19
analogous
#19408F #2D198F #68198F
triadic
#2D198F #8F2D19 #198F2D
tetradic
#2D198F #8F1940 #7B8F19 #198F68
square
#2D198F #8F1940 #7B8F19 #198F68
split-complementary
#2D198F #8F6819 #408F19
monochromatic
#0C0727 #1D105B #2D198F #3D22C3 #5E44DE
Accessibility & contrast
On white
12.75
#2D198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2D198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D198F
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D198F | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2d198f; /* rgb */ color: rgb(45, 25, 143); /* oklch */ color: oklch(33.8% 0.178 278.8);
Tailwind
colors: {
custom: {
50: '#755ab1',
500: '#2d198f',
950: '#000000',
},
}SCSS
$custom: #2d198f; $custom-light: #755ab1; $custom-dark: #000000;
JSON
{
"hex": "#2d198f",
"rgb": {
"r": 45,
"g": 25,
"b": 143
},
"hsl": {
"h": 250.169,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.33837,
"c": 0.17762,
"h": 278.8
},
"luminance": 0.03236
}Semantic roles & 50–950 ramp
primary
#2D198F
secondary
#ABBF44
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980