#2A2EA1#2A2EA1
#2A2EA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.180 H 272.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2EA1 |
|---|---|
| RGB | rgb(42, 46, 161) |
| HSL | hsl(238, 59%, 40%) |
| HSV | hsv(238, 74%, 63%) |
| CMYK | cmyk(73.9%, 71.4%, 0%, 36.9%) |
| CIE-LAB | lab(26.79, 37.96, -62.23) |
| CIE-LCH | lch(26.79, 72.89, 301.38°) |
| OKLab | oklab(38.47% 0.0081 -0.18) |
| OKLCH | oklch(38.47% 0.18 272.6) |
| XYZ | xyz(8.3627, 5.0186, 34.2393) |
| Luminance | 0.0502 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.28
Indigo Blue
#3A18B1
ΔE00 5.46
Royal
#0C1793
ΔE00 5.80
Blueberry
#464196
ΔE00 6.49
Cobalt Blue
#030AA7
ΔE00 6.88
Darkslateblue
#483D8B
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2EA1 #A19D2A
analogous
#2A6AA1 #2A2EA1 #612AA1
triadic
#2A2EA1 #A12A2E #2EA12A
tetradic
#2A2EA1 #A12A6A #A19D2A #2AA161
square
#2A2EA1 #A12A6A #A19D2A #2AA161
split-complementary
#2A2EA1 #A1612A #6AA12A
monochromatic
#111240 #1D2070 #2A2EA1 #3C41CC #6D70D9
Accessibility & contrast
On white
10.48
#2A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#2A2EA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2EA1
10.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2EA1 | 1.00 | 10.48 | 2.00 | 10.48 |
| #FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2a2ea1; /* rgb */ color: rgb(42, 46, 161); /* oklch */ color: oklch(38.5% 0.180 272.6);
Tailwind
colors: {
custom: {
50: '#7667be',
500: '#2a2ea1',
950: '#000000',
},
}SCSS
$custom: #2a2ea1; $custom-light: #7667be; $custom-dark: #000000;
JSON
{
"hex": "#2a2ea1",
"rgb": {
"r": 42,
"g": 46,
"b": 161
},
"hsl": {
"h": 237.983,
"s": 58.621,
"l": 39.804
},
"oklch": {
"l": 0.38469,
"c": 0.18021,
"h": 272.6
},
"luminance": 0.05019
}Semantic roles & 50–950 ramp
primary
#2A2EA1
secondary
#C0BD67
accent
#DD46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81