#2D148F#2D148F
#2D148F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.181 H 279.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2D148F |
|---|---|
| RGB | rgb(45, 20, 143) |
| HSL | hsl(252, 75%, 32%) |
| HSV | hsv(252, 86%, 56%) |
| CMYK | cmyk(68.5%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(20.21, 46.17, -62.03) |
| CIE-LCH | lch(20.21, 77.32, 306.66°) |
| OKLab | oklab(33.32% 0.0294 -0.1791) |
| OKLCH | oklch(33.32% 0.181 279.3) |
| XYZ | xyz(6.2887, 3.0408, 26.2368) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.68
Indigo (survey)
#380282
ΔE00 3.45
Cobalt Blue
#030AA7
ΔE00 3.86
Darkblue
#00008B
ΔE00 4.09
Royal Blue (survey)
#0504AA
ΔE00 4.22
Ultramarine
#2000B1
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D148F #768F14
analogous
#14398F #2D148F #6B148F
triadic
#2D148F #8F2D14 #148F2D
tetradic
#2D148F #8F1439 #768F14 #148F6B
square
#2D148F #8F1439 #768F14 #148F6B
split-complementary
#2D148F #8F6B14 #398F14
monochromatic
#0B0524 #1C0C59 #2D148F #3E1CC5 #5C3AE3
Accessibility & contrast
On white
13.06
#2D148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2D148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D148F
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D148F | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d148f; /* rgb */ color: rgb(45, 20, 143); /* oklch */ color: oklch(33.3% 0.181 279.3);
Tailwind
colors: {
custom: {
50: '#7658b1',
500: '#2d148f',
950: '#000000',
},
}SCSS
$custom: #2d148f; $custom-light: #7658b1; $custom-dark: #000000;
JSON
{
"hex": "#2d148f",
"rgb": {
"r": 45,
"g": 20,
"b": 143
},
"hsl": {
"h": 252.195,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.33316,
"c": 0.18149,
"h": 279.3
},
"luminance": 0.03041
}Semantic roles & 50–950 ramp
primary
#2D148F
secondary
#A7C33C
accent
#F236CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880