#2A2A9A#2A2A9A
#2A2A9A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.176 H 273.7°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2A9A |
|---|---|
| RGB | rgb(42, 42, 154) |
| HSL | hsl(240, 57%, 38%) |
| HSV | hsv(240, 73%, 60%) |
| CMYK | cmyk(72.7%, 72.7%, 0%, 39.6%) |
| CIE-LAB | lab(25.20, 37.95, -60.58) |
| CIE-LCH | lch(25.20, 71.48, 302.06°) |
| OKLab | oklab(37.12% 0.0115 -0.1752) |
| OKLCH | oklch(37.12% 0.176 273.7) |
| XYZ | xyz(7.6136, 4.4805, 31.0292) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.58
Royal
#0C1793
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.25
Cobalt Blue
#030AA7
ΔE00 6.14
Royal Blue (survey)
#0504AA
ΔE00 6.66
Ultramarine
#2000B1
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2A9A #9A9A2A
analogous
#2A629A #2A2A9A #622A9A
triadic
#2A2A9A #9A2A2A #2A9A2A
tetradic
#2A2A9A #9A2A62 #9A9A2A #2A9A62
square
#2A2A9A #9A2A62 #9A9A2A #2A9A62
split-complementary
#2A2A9A #9A622A #629A2A
monochromatic
#10103A #1D1D6A #2A2A9A #3838C9 #6868D6
Accessibility & contrast
On white
11.07
#2A2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2A2A9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2A9A
11.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2A9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2A9A | 1.00 | 11.07 | 1.90 | 11.07 |
| #FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a2a9a; /* rgb */ color: rgb(42, 42, 154); /* oklch */ color: oklch(37.1% 0.176 273.7);
Tailwind
colors: {
custom: {
50: '#7565b9',
500: '#2a2a9a',
950: '#000000',
},
}SCSS
$custom: #2a2a9a; $custom-light: #7565b9; $custom-dark: #000000;
JSON
{
"hex": "#2a2a9a",
"rgb": {
"r": 42,
"g": 42,
"b": 154
},
"hsl": {
"h": 240,
"s": 57.143,
"l": 38.431
},
"oklch": {
"l": 0.37117,
"c": 0.17557,
"h": 273.7
},
"luminance": 0.04481
}Semantic roles & 50–950 ramp
primary
#2A2A9A
secondary
#BCBC63
accent
#E047E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81