#2D186C#2D186C
#2D186C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.135 H 286.4°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2D186C |
|---|---|
| RGB | rgb(45, 24, 108) |
| HSL | hsl(255, 64%, 26%) |
| HSV | hsv(255, 78%, 42%) |
| CMYK | cmyk(58.3%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(16.96, 33.50, -45.10) |
| CIE-LCH | lch(16.96, 56.18, 306.61°) |
| OKLab | oklab(29.9% 0.0383 -0.1298) |
| OKLCH | oklch(29.9% 0.135 286.4) |
| XYZ | xyz(4.1148, 2.2936, 14.4103) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.09
Dark Indigo
#1F0954
ΔE00 4.84
Indigo (survey)
#380282
ΔE00 5.29
Darkblue (survey)
#030764
ΔE00 5.30
Dark Royal Blue
#02066F
ΔE00 5.33
Deep Blue
#040273
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D186C #576C18
analogous
#182D6C #2D186C #57186C
triadic
#2D186C #6C2D18 #186C2D
tetradic
#2D186C #6C182D #576C18 #186C57
square
#2D186C #6C182D #576C18 #186C57
split-complementary
#2D186C #6C5718 #2D6C18
monochromatic
#0A0619 #180D3A #2D186C #42239E #572ED0
Accessibility & contrast
On white
14.40
#2D186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2D186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D186C
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D186C | 1.00 | 14.40 | 1.46 | 14.40 |
| #FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#112F40
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2d186c; /* rgb */ color: rgb(45, 24, 108); /* oklch */ color: oklch(29.9% 0.135 286.4);
Tailwind
colors: {
custom: {
50: '#6e5797',
500: '#2d186c',
950: '#000000',
},
}SCSS
$custom: #2d186c; $custom-light: #6e5797; $custom-dark: #000000;
JSON
{
"hex": "#2d186c",
"rgb": {
"r": 45,
"g": 24,
"b": 108
},
"hsl": {
"h": 255,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.29899,
"c": 0.1353,
"h": 286.4
},
"luminance": 0.02294
}Semantic roles & 50–950 ramp
primary
#2D186C
secondary
#89A23E
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E