#2A2A7E#2A2A7E
#2A2A7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.138 H 276.3°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2A7E |
|---|---|
| RGB | rgb(42, 42, 126) |
| HSL | hsl(240, 50%, 33%) |
| HSV | hsv(240, 67%, 49%) |
| CMYK | cmyk(66.7%, 66.7%, 0%, 50.6%) |
| CIE-LAB | lab(22.49, 28.03, -47.60) |
| CIE-LCH | lch(22.49, 55.24, 300.49°) |
| OKLab | oklab(34.34% 0.0152 -0.1372) |
| OKLCH | oklch(34.34% 0.138 276.3) |
| XYZ | xyz(5.5475, 3.6541, 20.1476) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.79
Royal
#0C1793
ΔE00 6.20
Darkslateblue
#483D8B
ΔE00 6.57
Sapphire (survey)
#2138AB
ΔE00 7.45
Blueberry
#464196
ΔE00 7.49
Marine
#042E60
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2A7E #7E7E2A
analogous
#2A547E #2A2A7E #542A7E
triadic
#2A2A7E #7E2A2A #2A7E2A
tetradic
#2A2A7E #7E2A54 #7E7E2A #2A7E54
square
#2A2A7E #7E2A54 #7E7E2A #2A7E54
split-complementary
#2A2A7E #7E542A #547E2A
monochromatic
#0B0B22 #1B1B50 #2A2A7E #3939AC #5A5AC8
Accessibility & contrast
On white
12.13
#2A2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A2A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2A7E
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2A7E | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a2a7e; /* rgb */ color: rgb(42, 42, 126); /* oklch */ color: oklch(34.3% 0.138 276.3);
Tailwind
colors: {
custom: {
50: '#6f64a4',
500: '#2a2a7e',
950: '#000000',
},
}SCSS
$custom: #2a2a7e; $custom-light: #6f64a4; $custom-dark: #000000;
JSON
{
"hex": "#2a2a7e",
"rgb": {
"r": 42,
"g": 42,
"b": 126
},
"hsl": {
"h": 240,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.34338,
"c": 0.13806,
"h": 276.3
},
"luminance": 0.03655
}Semantic roles & 50–950 ramp
primary
#2A2A7E
secondary
#AEAE56
accent
#DA4EDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F