#2D165C#2D165C
#2D165C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 292.2°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2D165C |
|---|---|
| RGB | rgb(45, 22, 92) |
| HSL | hsl(260, 61%, 22%) |
| HSV | hsv(260, 76%, 36%) |
| CMYK | cmyk(51.1%, 76.1%, 0%, 63.9%) |
| CIE-LAB | lab(14.98, 29.60, -37.77) |
| CIE-LCH | lch(14.98, 47.99, 308.09°) |
| OKLab | oklab(28.01% 0.0441 -0.1083) |
| OKLCH | oklch(28.01% 0.117 292.2) |
| XYZ | xyz(3.3003, 1.9043, 10.3168) |
| Luminance | 0.0190 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.37
Midnight Blue
#191970
ΔE00 5.29
Darkblue (survey)
#030764
ΔE00 6.21
Dark Blue
#00035B
ΔE00 6.54
Night Blue
#040348
ΔE00 6.70
Dark Royal Blue
#02066F
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D165C #455C16
analogous
#16225C #2D165C #50165C
triadic
#2D165C #5C2D16 #165C2D
tetradic
#2D165C #5C1622 #455C16 #165C50
square
#2D165C #5C1622 #455C16 #165C50
split-complementary
#2D165C #5C5016 #225C16
monochromatic
#0C0619 #150A2B #2D165C #45228D #5D2EBF
Accessibility & contrast
On white
15.21
#2D165C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2D165C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D165C
15.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D165C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D165C | 1.00 | 15.21 | 1.38 | 15.21 |
| #FFFFFF | 15.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#1E2837
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2d165c; /* rgb */ color: rgb(45, 22, 92); /* oklch */ color: oklch(28.0% 0.117 292.2);
Tailwind
colors: {
custom: {
50: '#6b558b',
500: '#2d165c',
950: '#000000',
},
}SCSS
$custom: #2d165c; $custom-light: #6b558b; $custom-dark: #000000;
JSON
{
"hex": "#2d165c",
"rgb": {
"r": 45,
"g": 22,
"b": 92
},
"hsl": {
"h": 259.714,
"s": 61.404,
"l": 22.353
},
"oklch": {
"l": 0.28012,
"c": 0.11693,
"h": 292.2
},
"luminance": 0.01904
}Semantic roles & 50–950 ramp
primary
#2D165C
secondary
#76933B
accent
#E543B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D