#2A42AA#2A42AA
#2A42AA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.169 H 268.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42AA |
|---|---|
| RGB | rgb(42, 66, 170) |
| HSL | hsl(229, 60%, 42%) |
| HSV | hsv(229, 75%, 67%) |
| CMYK | cmyk(75.3%, 61.2%, 0%, 33.3%) |
| CIE-LAB | lab(32.46, 28.39, -58.36) |
| CIE-LCH | lch(32.46, 64.90, 295.95°) |
| OKLab | oklab(42.87% -0.0051 -0.1686) |
| OKLCH | oklch(42.87% 0.169 268.3) |
| XYZ | xyz(10.1562, 7.2899, 38.8942) |
| Luminance | 0.0729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.00
Cobalt
#0047AB
ΔE00 3.71
Blue Blue
#2242C7
ΔE00 3.88
Blueberry
#464196
ΔE00 5.19
Ocean Blue
#4F42B5
ΔE00 5.62
Cobalt (survey)
#1E488F
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42AA #AA922A
analogous
#2A82AA #2A42AA #522AAA
triadic
#2A42AA #AA2A42 #42AA2A
tetradic
#2A42AA #AA2A82 #AA922A #2AAA52
square
#2A42AA #AA2A82 #AA922A #2AAA52
split-complementary
#2A42AA #AA522A #82AA2A
monochromatic
#121C48 #1E2F79 #2A42AA #415CD0 #7286DC
Accessibility & contrast
On white
8.54
#2A42AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2A42AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42AA
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42AA | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2a42aa; /* rgb */ color: rgb(42, 66, 170); /* oklch */ color: oklch(42.9% 0.169 268.3);
Tailwind
colors: {
custom: {
50: '#7776c4',
500: '#2a42aa',
950: '#000000',
},
}SCSS
$custom: #2a42aa; $custom-light: #7776c4; $custom-dark: #000000;
JSON
{
"hex": "#2a42aa",
"rgb": {
"r": 42,
"g": 66,
"b": 170
},
"hsl": {
"h": 228.75,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.42866,
"c": 0.16866,
"h": 268.3
},
"luminance": 0.07291
}Semantic roles & 50–950 ramp
primary
#2A42AA
secondary
#C3B36C
accent
#C644E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82