#2A42A8#2A42A8
#2A42A8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.166 H 268.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42A8 |
|---|---|
| RGB | rgb(42, 66, 168) |
| HSL | hsl(229, 60%, 41%) |
| HSV | hsv(229, 75%, 66%) |
| CMYK | cmyk(75%, 60.7%, 0%, 34.1%) |
| CIE-LAB | lab(32.29, 27.64, -57.43) |
| CIE-LCH | lch(32.29, 63.74, 295.70°) |
| OKLab | oklab(42.69% -0.0051 -0.1659) |
| OKLCH | oklch(42.69% 0.166 268.2) |
| XYZ | xyz(9.9685, 7.2148, 37.9054) |
| Luminance | 0.0722 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.08
Cobalt
#0047AB
ΔE00 3.64
Blue Blue
#2242C7
ΔE00 4.16
Blueberry
#464196
ΔE00 5.09
Cobalt (survey)
#1E488F
ΔE00 5.52
Ocean Blue
#4F42B5
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42A8 #A8902A
analogous
#2A81A8 #2A42A8 #512AA8
triadic
#2A42A8 #A82A42 #42A82A
tetradic
#2A42A8 #A82A81 #A8902A #2AA851
square
#2A42A8 #A82A81 #A8902A #2AA851
split-complementary
#2A42A8 #A8512A #81A82A
monochromatic
#121C46 #1E2F77 #2A42A8 #405BCF #7185DB
Accessibility & contrast
On white
8.60
#2A42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#2A42A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42A8
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42A8 | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2a42a8; /* rgb */ color: rgb(42, 66, 168); /* oklch */ color: oklch(42.7% 0.166 268.2);
Tailwind
colors: {
custom: {
50: '#7676c3',
500: '#2a42a8',
950: '#000000',
},
}SCSS
$custom: #2a42a8; $custom-light: #7676c3; $custom-dark: #000000;
JSON
{
"hex": "#2a42a8",
"rgb": {
"r": 42,
"g": 66,
"b": 168
},
"hsl": {
"h": 228.571,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.4269,
"c": 0.16594,
"h": 268.2
},
"luminance": 0.07216
}Semantic roles & 50–950 ramp
primary
#2A42A8
secondary
#C3B26B
accent
#C545E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82