#2A2A8B#2A2A8B
#2A2A8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.156 H 275.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2A8B |
|---|---|
| RGB | rgb(42, 42, 139) |
| HSL | hsl(240, 54%, 35%) |
| HSV | hsv(240, 70%, 55%) |
| CMYK | cmyk(69.8%, 69.8%, 0%, 45.5%) |
| CIE-LAB | lab(23.71, 32.69, -53.77) |
| CIE-LCH | lch(23.71, 62.92, 301.30°) |
| OKLab | oklab(35.6% 0.0137 -0.1553) |
| OKLCH | oklch(35.6% 0.156 275) |
| XYZ | xyz(6.4415, 4.0117, 24.8560) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.98
Midnight Blue
#191970
ΔE00 5.67
Sapphire (survey)
#2138AB
ΔE00 5.86
Darkslateblue
#483D8B
ΔE00 6.62
Blueberry
#464196
ΔE00 7.06
Indigo Blue
#3A18B1
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2A8B #8B8B2A
analogous
#2A5A8B #2A2A8B #5A2A8B
triadic
#2A2A8B #8B2A2A #2A8B2A
tetradic
#2A2A8B #8B2A5A #8B8B2A #2A8B5A
square
#2A2A8B #8B2A5A #8B8B2A #2A8B5A
split-complementary
#2A2A8B #8B5A2A #5A8B2A
monochromatic
#0E0E2D #1C1C5C #2A2A8B #3838BA #6060CF
Accessibility & contrast
On white
11.65
#2A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2A2A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2A8B
11.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2A8B | 1.00 | 11.65 | 1.80 | 11.65 |
| #FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a2a8b; /* rgb */ color: rgb(42, 42, 139); /* oklch */ color: oklch(35.6% 0.156 275.0);
Tailwind
colors: {
custom: {
50: '#7264ae',
500: '#2a2a8b',
950: '#000000',
},
}SCSS
$custom: #2a2a8b; $custom-light: #7264ae; $custom-dark: #000000;
JSON
{
"hex": "#2a2a8b",
"rgb": {
"r": 42,
"g": 42,
"b": 139
},
"hsl": {
"h": 240,
"s": 53.591,
"l": 35.49
},
"oklch": {
"l": 0.35595,
"c": 0.1559,
"h": 275
},
"luminance": 0.04012
}Semantic roles & 50–950 ramp
primary
#2A2A8B
secondary
#B5B55C
accent
#DD4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F