#2A42B3#2A42B3
#2A42B3 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.181 H 268.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B3 |
|---|---|
| RGB | rgb(42, 66, 179) |
| HSL | hsl(229, 62%, 43%) |
| HSV | hsv(229, 77%, 70%) |
| CMYK | cmyk(76.5%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(33.23, 31.75, -62.47) |
| CIE-LCH | lch(33.23, 70.07, 296.95°) |
| OKLab | oklab(43.67% -0.0052 -0.1806) |
| OKLCH | oklch(43.67% 0.181 268.4) |
| XYZ | xyz(11.0369, 7.6421, 43.5325) |
| Luminance | 0.0764 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.60
Sapphire (survey)
#2138AB
ΔE00 3.04
Cobalt
#0047AB
ΔE00 4.22
Ocean Blue
#4F42B5
ΔE00 5.01
Blue (survey)
#0343DF
ΔE00 5.43
Blueberry
#464196
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B3 #B39B2A
analogous
#2A86B3 #2A42B3 #562AB3
triadic
#2A42B3 #B32A42 #42B32A
tetradic
#2A42B3 #B32A86 #B39B2A #2AB356
square
#2A42B3 #B32A86 #B39B2A #2AB356
split-complementary
#2A42B3 #B3562A #86B32A
monochromatic
#131D50 #1E3081 #2A42B3 #465FD4 #788ADF
Accessibility & contrast
On white
8.30
#2A42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.53
#2A42B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B3
8.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B3 | 1.00 | 8.30 | 2.53 | 8.30 |
| #FFFFFF | 8.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2a42b3; /* rgb */ color: rgb(42, 66, 179); /* oklch */ color: oklch(43.7% 0.181 268.4);
Tailwind
colors: {
custom: {
50: '#7976cb',
500: '#2a42b3',
950: '#000000',
},
}SCSS
$custom: #2a42b3; $custom-light: #7976cb; $custom-dark: #000000;
JSON
{
"hex": "#2a42b3",
"rgb": {
"r": 42,
"g": 66,
"b": 179
},
"hsl": {
"h": 229.489,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.43673,
"c": 0.18069,
"h": 268.4
},
"luminance": 0.07643
}Semantic roles & 50–950 ramp
primary
#2A42B3
secondary
#C7B872
accent
#C943E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82