#2D1A9B#2D1A9B
#2D1A9B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.191 H 276.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1A9B |
|---|---|
| RGB | rgb(45, 26, 155) |
| HSL | hsl(249, 71%, 35%) |
| HSV | hsv(249, 83%, 61%) |
| CMYK | cmyk(71%, 83.2%, 0%, 39.2%) |
| CIE-LAB | lab(22.52, 47.13, -65.61) |
| CIE-LCH | lch(22.52, 80.78, 305.69°) |
| OKLab | oklab(35.32% 0.0231 -0.1896) |
| OKLCH | oklch(35.32% 0.191 276.9) |
| XYZ | xyz(7.3661, 3.6626, 31.3227) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Cobalt Blue
#030AA7
ΔE00 3.28
Indigo Blue
#3A18B1
ΔE00 3.38
Royal Blue (survey)
#0504AA
ΔE00 3.68
Ultramarine
#2000B1
ΔE00 3.83
Indigo (survey)
#380282
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1A9B #889B1A
analogous
#1A479B #2D1A9B #6D1A9B
triadic
#2D1A9B #9B2D1A #1A9B2D
tetradic
#2D1A9B #9B1A47 #889B1A #1A9B6D
square
#2D1A9B #9B1A47 #889B1A #1A9B6D
split-complementary
#2D1A9B #9B6D1A #479B1A
monochromatic
#0F0832 #1E1167 #2D1A9B #3C23CF #644EE1
Accessibility & contrast
On white
12.12
#2D1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2D1A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1A9B
12.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1A9B | 1.00 | 12.12 | 1.73 | 12.12 |
| #FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2d1a9b; /* rgb */ color: rgb(45, 26, 155); /* oklch */ color: oklch(35.3% 0.191 276.9);
Tailwind
colors: {
custom: {
50: '#785bba',
500: '#2d1a9b',
950: '#000000',
},
}SCSS
$custom: #2d1a9b; $custom-light: #785bba; $custom-dark: #000000;
JSON
{
"hex": "#2d1a9b",
"rgb": {
"r": 45,
"g": 26,
"b": 155
},
"hsl": {
"h": 248.837,
"s": 71.271,
"l": 35.49
},
"oklch": {
"l": 0.35323,
"c": 0.19098,
"h": 276.9
},
"luminance": 0.03663
}Semantic roles & 50–950 ramp
primary
#2D1A9B
secondary
#B2C44D
accent
#EE3AD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981