#2D146F#2D146F
#2D146F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.143 H 286.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2D146F |
|---|---|
| RGB | rgb(45, 20, 111) |
| HSL | hsl(256, 69%, 26%) |
| HSV | hsv(256, 82%, 44%) |
| CMYK | cmyk(59.5%, 82%, 0%, 56.5%) |
| CIE-LAB | lab(16.53, 36.56, -47.75) |
| CIE-LCH | lch(16.53, 60.14, 307.44°) |
| OKLab | oklab(29.7% 0.0405 -0.1375) |
| OKLCH | oklch(29.7% 0.143 286.4) |
| XYZ | xyz(4.2007, 2.2057, 15.2402) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.30
Indigo (survey)
#380282
ΔE00 4.24
Dark Royal Blue
#02066F
ΔE00 4.66
Darkblue (survey)
#030764
ΔE00 4.90
Deep Blue
#040273
ΔE00 4.93
Dark Indigo
#1F0954
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D146F #566F14
analogous
#14286F #2D146F #5A146F
triadic
#2D146F #6F2D14 #146F2D
tetradic
#2D146F #6F1428 #566F14 #146F5A
square
#2D146F #6F1428 #566F14 #146F5A
split-complementary
#2D146F #6F5A14 #286F14
monochromatic
#0B051A #180B3B #2D146F #421DA3 #5727D7
Accessibility & contrast
On white
14.57
#2D146F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2D146F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D146F
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D146F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D146F | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#0D2F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2d146f; /* rgb */ color: rgb(45, 20, 111); /* oklch */ color: oklch(29.7% 0.143 286.4);
Tailwind
colors: {
custom: {
50: '#6f5599',
500: '#2d146f',
950: '#000000',
},
}SCSS
$custom: #2d146f; $custom-light: #6f5599; $custom-dark: #000000;
JSON
{
"hex": "#2d146f",
"rgb": {
"r": 45,
"g": 20,
"b": 111
},
"hsl": {
"h": 256.484,
"s": 69.466,
"l": 25.686
},
"oklch": {
"l": 0.29695,
"c": 0.14336,
"h": 286.4
},
"luminance": 0.02206
}Semantic roles & 50–950 ramp
primary
#2D146F
secondary
#88A639
accent
#EC3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E