#2D149F#2D149F
#2D149F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.200 H 276.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2D149F |
|---|---|
| RGB | rgb(45, 20, 159) |
| HSL | hsl(251, 78%, 35%) |
| HSV | hsv(251, 87%, 62%) |
| CMYK | cmyk(71.7%, 87.4%, 0%, 37.6%) |
| CIE-LAB | lab(22.16, 50.80, -68.66) |
| CIE-LCH | lch(22.16, 85.41, 306.50°) |
| OKLab | oklab(35.22% 0.0239 -0.1983) |
| OKLCH | oklch(35.22% 0.2 276.9) |
| XYZ | xyz(7.5883, 3.5607, 33.0815) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.58
Ultramarine
#2000B1
ΔE00 2.84
Royal Blue (survey)
#0504AA
ΔE00 2.85
Indigo Blue
#3A18B1
ΔE00 3.01
Royal
#0C1793
ΔE00 3.15
Indigo (survey)
#380282
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D149F #869F14
analogous
#14419F #2D149F #72149F
triadic
#2D149F #9F2D14 #149F2D
tetradic
#2D149F #9F1441 #869F14 #149F72
square
#2D149F #9F1441 #869F14 #149F72
split-complementary
#2D149F #9F7214 #419F14
monochromatic
#0E0632 #1E0D69 #2D149F #3C1BD5 #6346E8
Accessibility & contrast
On white
12.26
#2D149F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2D149F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D149F
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D149F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D149F | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2d149f; /* rgb */ color: rgb(45, 20, 159); /* oklch */ color: oklch(35.2% 0.200 276.9);
Tailwind
colors: {
custom: {
50: '#7959bd',
500: '#2d149f',
950: '#000000',
},
}SCSS
$custom: #2d149f; $custom-light: #7959bd; $custom-dark: #000000;
JSON
{
"hex": "#2d149f",
"rgb": {
"r": 45,
"g": 20,
"b": 159
},
"hsl": {
"h": 250.791,
"s": 77.654,
"l": 35.098
},
"oklch": {
"l": 0.35216,
"c": 0.19974,
"h": 276.9
},
"luminance": 0.03561
}Semantic roles & 50–950 ramp
primary
#2D149F
secondary
#B1C846
accent
#F434D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981