#2A2A9E#2A2A9E
#2A2A9E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.181 H 273.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2A9E |
|---|---|
| RGB | rgb(42, 42, 158) |
| HSL | hsl(240, 58%, 39%) |
| HSV | hsv(240, 73%, 62%) |
| CMYK | cmyk(73.4%, 73.4%, 0%, 38%) |
| CIE-LAB | lab(25.61, 39.33, -62.34) |
| CIE-LCH | lch(25.61, 73.71, 302.24°) |
| OKLab | oklab(37.54% 0.0108 -0.1803) |
| OKLCH | oklch(37.54% 0.181 273.4) |
| XYZ | xyz(7.9523, 4.6160, 32.8130) |
| Luminance | 0.0462 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.36
Royal
#0C1793
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 4.85
Cobalt Blue
#030AA7
ΔE00 5.97
Royal Blue (survey)
#0504AA
ΔE00 6.47
Ultramarine
#2000B1
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2A9E #9E9E2A
analogous
#2A649E #2A2A9E #642A9E
triadic
#2A2A9E #9E2A2A #2A9E2A
tetradic
#2A2A9E #9E2A64 #9E9E2A #2A9E64
square
#2A2A9E #9E2A64 #9E9E2A #2A9E64
split-complementary
#2A2A9E #9E642A #649E2A
monochromatic
#10103D #1D1D6E #2A2A9E #3A3ACB #6B6BD8
Accessibility & contrast
On white
10.92
#2A2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#2A2A9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2A9E
10.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2A9E | 1.00 | 10.92 | 1.92 | 10.92 |
| #FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a2a9e; /* rgb */ color: rgb(42, 42, 158); /* oklch */ color: oklch(37.5% 0.181 273.4);
Tailwind
colors: {
custom: {
50: '#7665bc',
500: '#2a2a9e',
950: '#000000',
},
}SCSS
$custom: #2a2a9e; $custom-light: #7665bc; $custom-dark: #000000;
JSON
{
"hex": "#2a2a9e",
"rgb": {
"r": 42,
"g": 42,
"b": 158
},
"hsl": {
"h": 240,
"s": 58,
"l": 39.216
},
"oklch": {
"l": 0.37535,
"c": 0.18066,
"h": 273.4
},
"luminance": 0.04617
}Semantic roles & 50–950 ramp
primary
#2A2A9E
secondary
#BEBE66
accent
#E147E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81