#2A27AB#2A27AB
#2A27AB is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.200 H 272.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2A27AB |
|---|---|
| RGB | rgb(42, 39, 171) |
| HSL | hsl(241, 63%, 41%) |
| HSV | hsv(241, 77%, 67%) |
| CMYK | cmyk(75.4%, 77.2%, 0%, 32.9%) |
| CIE-LAB | lab(26.40, 45.39, -68.92) |
| CIE-LCH | lch(26.40, 82.52, 303.37°) |
| OKLab | oklab(38.51% 0.0098 -0.1994) |
| OKLCH | oklch(38.51% 0.2 272.8) |
| XYZ | xyz(9.0286, 4.8826, 38.9868) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.33
Sapphire (survey)
#2138AB
ΔE00 4.79
True Blue
#010FCC
ΔE00 5.00
Royal
#0C1793
ΔE00 5.18
Cobalt Blue
#030AA7
ΔE00 5.22
Ultramarine
#2000B1
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A27AB #A8AB27
analogous
#2766AB #2A27AB #6C27AB
triadic
#2A27AB #AB2A27 #27AB2A
tetradic
#2A27AB #AB2766 #A8AB27 #27AB6C
square
#2A27AB #AB2766 #A8AB27 #27AB6C
split-complementary
#2A27AB #AB6C27 #66AB27
monochromatic
#121047 #1E1C79 #2A27AB #403DD3 #716EDE
Accessibility & contrast
On white
10.62
#2A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#2A27AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A27AB
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A27AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A27AB | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0038A9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2a27ab; /* rgb */ color: rgb(42, 39, 171); /* oklch */ color: oklch(38.5% 0.200 272.8);
Tailwind
colors: {
custom: {
50: '#7a64c5',
500: '#2a27ab',
950: '#000000',
},
}SCSS
$custom: #2a27ab; $custom-light: #7a64c5; $custom-dark: #000000;
JSON
{
"hex": "#2a27ab",
"rgb": {
"r": 42,
"g": 39,
"b": 171
},
"hsl": {
"h": 241.364,
"s": 62.857,
"l": 41.176
},
"oklch": {
"l": 0.38505,
"c": 0.19969,
"h": 272.8
},
"luminance": 0.04884
}Semantic roles & 50–950 ramp
primary
#2A27AB
secondary
#C3C569
accent
#E642E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82