#2A42B7#2A42B7
#2A42B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.186 H 268.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B7 |
|---|---|
| RGB | rgb(42, 66, 183) |
| HSL | hsl(230, 63%, 44%) |
| HSV | hsv(230, 77%, 72%) |
| CMYK | cmyk(77%, 63.9%, 0%, 28.2%) |
| CIE-LAB | lab(33.58, 33.23, -64.26) |
| CIE-LCH | lch(33.58, 72.34, 297.34°) |
| OKLab | oklab(44.04% -0.0053 -0.1859) |
| OKLCH | oklch(44.04% 0.186 268.4) |
| XYZ | xyz(11.4473, 7.8063, 45.6940) |
| Luminance | 0.0781 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.06
Sapphire (survey)
#2138AB
ΔE00 3.24
Cobalt
#0047AB
ΔE00 4.53
Ocean Blue
#4F42B5
ΔE00 4.83
Blue (survey)
#0343DF
ΔE00 4.89
Blueberry
#464196
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B7 #B79F2A
analogous
#2A89B7 #2A42B7 #592AB7
triadic
#2A42B7 #B72A42 #42B72A
tetradic
#2A42B7 #B72A89 #B79F2A #2AB759
square
#2A42B7 #B72A89 #B79F2A #2AB759
split-complementary
#2A42B7 #B7592A #89B72A
monochromatic
#131E53 #1F3085 #2A42B7 #4961D5 #7B8CE1
Accessibility & contrast
On white
8.20
#2A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#2A42B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B7
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B7 | 1.00 | 8.20 | 2.56 | 8.20 |
| #FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2a42b7; /* rgb */ color: rgb(42, 66, 183); /* oklch */ color: oklch(44.0% 0.186 268.4);
Tailwind
colors: {
custom: {
50: '#7a76ce',
500: '#2a42b7',
950: '#000000',
},
}SCSS
$custom: #2a42b7; $custom-light: #7a76ce; $custom-dark: #000000;
JSON
{
"hex": "#2a42b7",
"rgb": {
"r": 42,
"g": 66,
"b": 183
},
"hsl": {
"h": 229.787,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.44039,
"c": 0.18596,
"h": 268.4
},
"luminance": 0.07808
}Semantic roles & 50–950 ramp
primary
#2A42B7
secondary
#C9BA74
accent
#CA42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82