#2D1F6E#2D1F6E
#2D1F6E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.129 H 284.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F6E |
|---|---|
| RGB | rgb(45, 31, 110) |
| HSL | hsl(251, 56%, 28%) |
| HSV | hsv(251, 72%, 43%) |
| CMYK | cmyk(59.1%, 71.8%, 0%, 56.9%) |
| CIE-LAB | lab(18.64, 30.02, -43.64) |
| CIE-LCH | lch(18.64, 52.97, 304.52°) |
| OKLab | oklab(31.16% 0.0315 -0.1255) |
| OKLCH | oklch(31.16% 0.129 284.1) |
| XYZ | xyz(4.3858, 2.6634, 15.0318) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Dark Indigo
#1F0954
ΔE00 6.10
Darkblue (survey)
#030764
ΔE00 6.45
Dark Royal Blue
#02066F
ΔE00 6.49
Indigo (survey)
#380282
ΔE00 6.55
Royal
#0C1793
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F6E #606E1F
analogous
#1F386E #2D1F6E #541F6E
triadic
#2D1F6E #6E2D1F #1F6E2D
tetradic
#2D1F6E #6E1F38 #606E1F #1F6E54
square
#2D1F6E #6E1F38 #606E1F #1F6E54
split-complementary
#2D1F6E #6E541F #386E1F
monochromatic
#0A0718 #19123E #2D1F6E #412C9E #573FC9
Accessibility & contrast
On white
13.70
#2D1F6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2D1F6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F6E
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F6E | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#0D3344
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d1f6e; /* rgb */ color: rgb(45, 31, 110); /* oklch */ color: oklch(31.2% 0.129 284.1);
Tailwind
colors: {
custom: {
50: '#6e5c98',
500: '#2d1f6e',
950: '#000000',
},
}SCSS
$custom: #2d1f6e; $custom-light: #6e5c98; $custom-dark: #000000;
JSON
{
"hex": "#2d1f6e",
"rgb": {
"r": 45,
"g": 31,
"b": 110
},
"hsl": {
"h": 250.633,
"s": 56.028,
"l": 27.647
},
"oklch": {
"l": 0.31157,
"c": 0.12942,
"h": 284.1
},
"luminance": 0.02664
}Semantic roles & 50–950 ramp
primary
#2D1F6E
secondary
#92A247
accent
#DF48C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E