#2A2185#2A2185
#2A2185 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.158 H 277.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2185 |
|---|---|
| RGB | rgb(42, 33, 133) |
| HSL | hsl(245, 60%, 33%) |
| HSV | hsv(245, 75%, 52%) |
| CMYK | cmyk(68.4%, 75.2%, 0%, 47.8%) |
| CIE-LAB | lab(21.11, 36.13, -54.29) |
| CIE-LCH | lch(21.11, 65.22, 303.64°) |
| OKLab | oklab(33.55% 0.0209 -0.1568) |
| OKLCH | oklch(33.55% 0.158 277.6) |
| XYZ | xyz(5.7310, 3.2729, 22.5155) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.61
Midnight Blue
#191970
ΔE00 3.93
Indigo (survey)
#380282
ΔE00 5.73
Cobalt Blue
#030AA7
ΔE00 6.21
Darkblue
#00008B
ΔE00 6.25
Navy
#000080
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2185 #7C8521
analogous
#214A85 #2A2185 #5C2185
triadic
#2A2185 #852A21 #21852A
tetradic
#2A2185 #85214A #7C8521 #21855C
square
#2A2185 #85214A #7C8521 #21855C
split-complementary
#2A2185 #855C21 #4A8521
monochromatic
#0B0923 #1B1554 #2A2185 #392DB6 #594DD3
Accessibility & contrast
On white
12.69
#2A2185 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2A2185 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2185
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2185 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2185 | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2a2185; /* rgb */ color: rgb(42, 33, 133); /* oklch */ color: oklch(33.5% 0.158 277.6);
Tailwind
colors: {
custom: {
50: '#715eaa',
500: '#2a2185',
950: '#000000',
},
}SCSS
$custom: #2a2185; $custom-light: #715eaa; $custom-dark: #000000;
JSON
{
"hex": "#2a2185",
"rgb": {
"r": 42,
"g": 33,
"b": 133
},
"hsl": {
"h": 245.4,
"s": 60.241,
"l": 32.549
},
"oklch": {
"l": 0.33547,
"c": 0.1582,
"h": 277.6
},
"luminance": 0.03273
}Semantic roles & 50–950 ramp
primary
#2A2185
secondary
#ADB64C
accent
#E344D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F