#2A42B6#2A42B6
#2A42B6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.185 H 268.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B6 |
|---|---|
| RGB | rgb(42, 66, 182) |
| HSL | hsl(230, 63%, 44%) |
| HSV | hsv(230, 77%, 71%) |
| CMYK | cmyk(76.9%, 63.7%, 0%, 28.6%) |
| CIE-LAB | lab(33.49, 32.86, -63.81) |
| CIE-LCH | lch(33.49, 71.78, 297.25°) |
| OKLab | oklab(43.95% -0.0053 -0.1846) |
| OKLCH | oklch(43.95% 0.185 268.4) |
| XYZ | xyz(11.3436, 7.7648, 45.1478) |
| Luminance | 0.0777 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.19
Sapphire (survey)
#2138AB
ΔE00 3.18
Cobalt
#0047AB
ΔE00 4.45
Ocean Blue
#4F42B5
ΔE00 4.87
Blue (survey)
#0343DF
ΔE00 5.03
Blueberry
#464196
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B6 #B69E2A
analogous
#2A88B6 #2A42B6 #582AB6
triadic
#2A42B6 #B62A42 #42B62A
tetradic
#2A42B6 #B62A88 #B69E2A #2AB658
square
#2A42B6 #B62A88 #B69E2A #2AB658
split-complementary
#2A42B6 #B6582A #88B62A
monochromatic
#131E53 #1F3084 #2A42B6 #4860D5 #7A8CE0
Accessibility & contrast
On white
8.22
#2A42B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2A42B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B6
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B6 | 1.00 | 8.22 | 2.55 | 8.22 |
| #FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a42b6; /* rgb */ color: rgb(42, 66, 182); /* oklch */ color: oklch(43.9% 0.185 268.4);
Tailwind
colors: {
custom: {
50: '#7a76cd',
500: '#2a42b6',
950: '#000000',
},
}SCSS
$custom: #2a42b6; $custom-light: #7a76cd; $custom-dark: #000000;
JSON
{
"hex": "#2a42b6",
"rgb": {
"r": 42,
"g": 66,
"b": 182
},
"hsl": {
"h": 229.714,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.43947,
"c": 0.18465,
"h": 268.4
},
"luminance": 0.07766
}Semantic roles & 50–950 ramp
primary
#2A42B6
secondary
#C8BA73
accent
#CA42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82