#2D186F#2D186F
#2D186F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.139 H 285.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2D186F |
|---|---|
| RGB | rgb(45, 24, 111) |
| HSL | hsl(254, 64%, 26%) |
| HSV | hsv(254, 78%, 44%) |
| CMYK | cmyk(59.5%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(17.27, 34.45, -46.54) |
| CIE-LCH | lch(17.27, 57.91, 306.51°) |
| OKLab | oklab(30.21% 0.0375 -0.134) |
| OKLCH | oklch(30.21% 0.139 285.6) |
| XYZ | xyz(4.2772, 2.3586, 15.2657) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Indigo (survey)
#380282
ΔE00 4.90
Dark Royal Blue
#02066F
ΔE00 5.15
Dark Indigo
#1F0954
ΔE00 5.22
Darkblue (survey)
#030764
ΔE00 5.30
Deep Blue
#040273
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D186F #5A6F18
analogous
#182F6F #2D186F #59186F
triadic
#2D186F #6F2D18 #186F2D
tetradic
#2D186F #6F182F #5A6F18 #186F59
square
#2D186F #6F182F #5A6F18 #186F59
split-complementary
#2D186F #6F5918 #2F6F18
monochromatic
#0A0519 #190D3D #2D186F #4123A1 #572FD2
Accessibility & contrast
On white
14.27
#2D186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2D186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D186F
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D186F | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#0C3042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2d186f; /* rgb */ color: rgb(45, 24, 111); /* oklch */ color: oklch(30.2% 0.139 285.6);
Tailwind
colors: {
custom: {
50: '#6f5799',
500: '#2d186f',
950: '#000000',
},
}SCSS
$custom: #2d186f; $custom-light: #6f5799; $custom-dark: #000000;
JSON
{
"hex": "#2d186f",
"rgb": {
"r": 45,
"g": 24,
"b": 111
},
"hsl": {
"h": 254.483,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.3021,
"c": 0.13915,
"h": 285.6
},
"luminance": 0.02359
}Semantic roles & 50–950 ramp
primary
#2D186F
secondary
#8CA53E
accent
#E740BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E