#2D219E#2D219E
#2D219E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.189 H 275.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2D219E |
|---|---|
| RGB | rgb(45, 33, 158) |
| HSL | hsl(246, 65%, 37%) |
| HSV | hsv(246, 79%, 62%) |
| CMYK | cmyk(71.5%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(24.04, 44.64, -64.93) |
| CIE-LCH | lch(24.04, 78.79, 304.51°) |
| OKLab | oklab(36.48% 0.0192 -0.1877) |
| OKLCH | oklch(36.48% 0.189 275.8) |
| XYZ | xyz(7.7956, 4.1135, 32.7243) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.34
Royal
#0C1793
ΔE00 3.48
Cobalt Blue
#030AA7
ΔE00 4.16
Royal Blue (survey)
#0504AA
ΔE00 4.61
Ultramarine
#2000B1
ΔE00 4.65
True Blue
#010FCC
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D219E #929E21
analogous
#21549E #2D219E #6C219E
triadic
#2D219E #9E2D21 #219E2D
tetradic
#2D219E #9E2154 #929E21 #219E6C
square
#2D219E #9E2154 #929E21 #219E6C
split-complementary
#2D219E #9E6C21 #549E21
monochromatic
#100C39 #1F166B #2D219E #3B2CD1 #695CDD
Accessibility & contrast
On white
11.52
#2D219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2D219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D219E
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D219E | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2d219e; /* rgb */ color: rgb(45, 33, 158); /* oklch */ color: oklch(36.5% 0.189 275.8);
Tailwind
colors: {
custom: {
50: '#785fbc',
500: '#2d219e',
950: '#000000',
},
}SCSS
$custom: #2d219e; $custom-light: #785fbc; $custom-dark: #000000;
JSON
{
"hex": "#2d219e",
"rgb": {
"r": 45,
"g": 33,
"b": 158
},
"hsl": {
"h": 245.76,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.3648,
"c": 0.18869,
"h": 275.8
},
"luminance": 0.04114
}Semantic roles & 50–950 ramp
primary
#2D219E
secondary
#B7C159
accent
#E83FD8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981