#2D2186#2D2186
#2D2186 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.159 H 279.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2D2186 |
|---|---|
| RGB | rgb(45, 33, 134) |
| HSL | hsl(247, 60%, 33%) |
| HSV | hsv(247, 75%, 53%) |
| CMYK | cmyk(66.4%, 75.4%, 0%, 47.5%) |
| CIE-LAB | lab(21.46, 36.84, -54.34) |
| CIE-LCH | lch(21.46, 65.65, 304.14°) |
| OKLab | oklab(33.89% 0.025 -0.1569) |
| OKLCH | oklch(33.89% 0.159 279.1) |
| XYZ | xyz(5.9277, 3.3664, 22.8870) |
| Luminance | 0.0337 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.72
Midnight Blue
#191970
ΔE00 4.23
Indigo (survey)
#380282
ΔE00 5.51
Cobalt Blue
#030AA7
ΔE00 6.16
Darkblue
#00008B
ΔE00 6.30
Indigo Blue
#3A18B1
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D2186 #7A8621
analogous
#214786 #2D2186 #602186
triadic
#2D2186 #862D21 #21862D
tetradic
#2D2186 #862147 #7A8621 #218660
square
#2D2186 #862147 #7A8621 #218660
split-complementary
#2D2186 #866021 #478621
monochromatic
#0C0924 #1D1555 #2D2186 #3D2DB7 #5E4ED3
Accessibility & contrast
On white
12.55
#2D2186 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2D2186 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D2186
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D2186 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D2186 | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2d2186; /* rgb */ color: rgb(45, 33, 134); /* oklch */ color: oklch(33.9% 0.159 279.1);
Tailwind
colors: {
custom: {
50: '#735eaa',
500: '#2d2186',
950: '#000000',
},
}SCSS
$custom: #2d2186; $custom-light: #735eaa; $custom-dark: #000000;
JSON
{
"hex": "#2d2186",
"rgb": {
"r": 45,
"g": 33,
"b": 134
},
"hsl": {
"h": 247.129,
"s": 60.479,
"l": 32.745
},
"oklch": {
"l": 0.33889,
"c": 0.15884,
"h": 279.1
},
"luminance": 0.03367
}Semantic roles & 50–950 ramp
primary
#2D2186
secondary
#AAB74C
accent
#E444D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F