#2D156F#2D156F
#2D156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.142 H 286.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2D156F |
|---|---|
| RGB | rgb(45, 21, 111) |
| HSL | hsl(256, 68%, 26%) |
| HSV | hsv(256, 81%, 44%) |
| CMYK | cmyk(59.5%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.71, 36.05, -47.46) |
| CIE-LCH | lch(16.71, 59.60, 307.22°) |
| OKLab | oklab(29.82% 0.0398 -0.1367) |
| OKLCH | oklch(29.82% 0.142 286.2) |
| XYZ | xyz(4.2187, 2.2417, 15.2462) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.19
Indigo (survey)
#380282
ΔE00 4.39
Dark Royal Blue
#02066F
ΔE00 4.76
Darkblue (survey)
#030764
ΔE00 4.98
Dark Indigo
#1F0954
ΔE00 4.98
Deep Blue
#040273
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D156F #576F15
analogous
#152A6F #2D156F #5A156F
triadic
#2D156F #6F2D15 #156F2D
tetradic
#2D156F #6F152A #576F15 #156F5A
square
#2D156F #6F152A #576F15 #156F5A
split-complementary
#2D156F #6F5A15 #2A6F15
monochromatic
#0A051A #180B3C #2D156F #421FA2 #5728D6
Accessibility & contrast
On white
14.50
#2D156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2D156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D156F
14.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D156F | 1.00 | 14.50 | 1.45 | 14.50 |
| #FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D2F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2d156f; /* rgb */ color: rgb(45, 21, 111); /* oklch */ color: oklch(29.8% 0.142 286.2);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2d156f',
950: '#000000',
},
}SCSS
$custom: #2d156f; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2d156f",
"rgb": {
"r": 45,
"g": 21,
"b": 111
},
"hsl": {
"h": 256,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29818,
"c": 0.14234,
"h": 286.2
},
"luminance": 0.02242
}Semantic roles & 50–950 ramp
primary
#2D156F
secondary
#89A53A
accent
#EB3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E