#2D1B7B#2D1B7B
#2D1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.151 H 282.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1B7B |
|---|---|
| RGB | rgb(45, 27, 123) |
| HSL | hsl(251, 64%, 29%) |
| HSV | hsv(251, 78%, 48%) |
| CMYK | cmyk(63.4%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(19.10, 36.63, -51.24) |
| CIE-LCH | lch(19.10, 62.99, 305.56°) |
| OKLab | oklab(31.88% 0.0319 -0.1478) |
| OKLCH | oklch(31.88% 0.151 282.2) |
| XYZ | xyz(5.0482, 2.7715, 19.0040) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Indigo (survey)
#380282
ΔE00 4.42
Royal
#0C1793
ΔE00 4.53
Dark Royal Blue
#02066F
ΔE00 5.47
Deep Blue
#040273
ΔE00 5.68
Navy
#000080
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1B7B #697B1B
analogous
#1B397B #2D1B7B #5D1B7B
triadic
#2D1B7B #7B2D1B #1B7B2D
tetradic
#2D1B7B #7B1B39 #697B1B #1B7B5D
square
#2D1B7B #7B1B39 #697B1B #1B7B5D
split-complementary
#2D1B7B #7B5D1B #397B1B
monochromatic
#090619 #1B1049 #2D1B7B #3F26AD #593CD4
Accessibility & contrast
On white
13.51
#2D1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2D1B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1B7B
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1B7B | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d1b7b; /* rgb */ color: rgb(45, 27, 123); /* oklch */ color: oklch(31.9% 0.151 282.2);
Tailwind
colors: {
custom: {
50: '#715aa2',
500: '#2d1b7b',
950: '#000000',
},
}SCSS
$custom: #2d1b7b; $custom-light: #715aa2; $custom-dark: #000000;
JSON
{
"hex": "#2d1b7b",
"rgb": {
"r": 45,
"g": 27,
"b": 123
},
"hsl": {
"h": 251.25,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31882,
"c": 0.15118,
"h": 282.2
},
"luminance": 0.02772
}Semantic roles & 50–950 ramp
primary
#2D1B7B
secondary
#9BAF43
accent
#E741C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F