#2D165F#2D165F
#2D165F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.3% C 0.121 H 291.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2D165F |
|---|---|
| RGB | rgb(45, 22, 95) |
| HSL | hsl(259, 62%, 23%) |
| HSV | hsv(259, 77%, 37%) |
| CMYK | cmyk(52.6%, 76.8%, 0%, 62.7%) |
| CIE-LAB | lab(15.26, 30.54, -39.30) |
| CIE-LCH | lch(15.26, 49.77, 307.84°) |
| OKLab | oklab(28.31% 0.0434 -0.1128) |
| OKLCH | oklch(28.31% 0.121 291.1) |
| XYZ | xyz(3.4341, 1.9578, 11.0212) |
| Luminance | 0.0196 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.42
Midnight Blue
#191970
ΔE00 4.78
Darkblue (survey)
#030764
ΔE00 5.85
Dark Blue
#00035B
ΔE00 6.31
Dark Royal Blue
#02066F
ΔE00 6.50
Night Blue
#040348
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D165F #485F16
analogous
#16235F #2D165F #51165F
triadic
#2D165F #5F2D16 #165F2D
tetradic
#2D165F #5F1623 #485F16 #165F51
square
#2D165F #5F1623 #485F16 #165F51
split-complementary
#2D165F #5F5116 #235F16
monochromatic
#0C0619 #150A2D #2D165F #452291 #5C2DC2
Accessibility & contrast
On white
15.09
#2D165F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2D165F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D165F
15.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D165F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D165F | 1.00 | 15.09 | 1.39 | 15.09 |
| #FFFFFF | 15.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#1C2939
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2d165f; /* rgb */ color: rgb(45, 22, 95); /* oklch */ color: oklch(28.3% 0.121 291.1);
Tailwind
colors: {
custom: {
50: '#6c558d',
500: '#2d165f',
950: '#000000',
},
}SCSS
$custom: #2d165f; $custom-light: #6c558d; $custom-dark: #000000;
JSON
{
"hex": "#2d165f",
"rgb": {
"r": 45,
"g": 22,
"b": 95
},
"hsl": {
"h": 258.904,
"s": 62.393,
"l": 22.941
},
"oklch": {
"l": 0.28305,
"c": 0.12085,
"h": 291.1
},
"luminance": 0.01958
}Semantic roles & 50–950 ramp
primary
#2D165F
secondary
#79963B
accent
#E542B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D