#2A2A7A#2A2A7A
#2A2A7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.132 H 276.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2A7A |
|---|---|
| RGB | rgb(42, 42, 122) |
| HSL | hsl(240, 49%, 32%) |
| HSV | hsv(240, 66%, 48%) |
| CMYK | cmyk(65.6%, 65.6%, 0%, 52.2%) |
| CIE-LAB | lab(22.13, 26.58, -45.65) |
| CIE-LCH | lch(22.13, 52.83, 300.21°) |
| OKLab | oklab(33.96% 0.0155 -0.1315) |
| OKLCH | oklch(33.96% 0.132 276.7) |
| XYZ | xyz(5.2945, 3.5529, 18.8153) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.72
Darkslateblue
#483D8B
ΔE00 6.67
Royal
#0C1793
ΔE00 6.71
Blueberry
#464196
ΔE00 7.73
Sapphire (survey)
#2138AB
ΔE00 8.01
Marine
#042E60
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2A7A #7A7A2A
analogous
#2A527A #2A2A7A #522A7A
triadic
#2A2A7A #7A2A2A #2A7A2A
tetradic
#2A2A7A #7A2A52 #7A7A2A #2A7A52
square
#2A2A7A #7A2A52 #7A7A2A #2A7A52
split-complementary
#2A2A7A #7A522A #527A2A
monochromatic
#0B0B1F #1A1A4C #2A2A7A #3A3AA8 #5959C6
Accessibility & contrast
On white
12.28
#2A2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2A2A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2A7A
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2A7A | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a2a7a; /* rgb */ color: rgb(42, 42, 122); /* oklch */ color: oklch(34.0% 0.132 276.7);
Tailwind
colors: {
custom: {
50: '#6e64a1',
500: '#2a2a7a',
950: '#000000',
},
}SCSS
$custom: #2a2a7a; $custom-light: #6e64a1; $custom-dark: #000000;
JSON
{
"hex": "#2a2a7a",
"rgb": {
"r": 42,
"g": 42,
"b": 122
},
"hsl": {
"h": 240,
"s": 48.78,
"l": 32.157
},
"oklch": {
"l": 0.33964,
"c": 0.13242,
"h": 276.7
},
"luminance": 0.03553
}Semantic roles & 50–950 ramp
primary
#2A2A7A
secondary
#ABAB55
accent
#D84FD8
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F