#2A42B1#2A42B1
#2A42B1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.178 H 268.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B1 |
|---|---|
| RGB | rgb(42, 66, 177) |
| HSL | hsl(229, 62%, 43%) |
| HSV | hsv(229, 76%, 69%) |
| CMYK | cmyk(76.3%, 62.7%, 0%, 30.6%) |
| CIE-LAB | lab(33.05, 31.01, -61.56) |
| CIE-LCH | lch(33.05, 68.93, 296.74°) |
| OKLab | oklab(43.49% -0.0051 -0.178) |
| OKLCH | oklch(43.49% 0.178 268.3) |
| XYZ | xyz(10.8361, 7.5618, 42.4749) |
| Luminance | 0.0756 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.88
Sapphire (survey)
#2138AB
ΔE00 2.98
Cobalt
#0047AB
ΔE00 4.08
Ocean Blue
#4F42B5
ΔE00 5.12
Blueberry
#464196
ΔE00 5.65
Blue (survey)
#0343DF
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B1 #B1992A
analogous
#2A86B1 #2A42B1 #552AB1
triadic
#2A42B1 #B12A42 #42B12A
tetradic
#2A42B1 #B12A86 #B1992A #2AB155
square
#2A42B1 #B12A86 #B1992A #2AB155
split-complementary
#2A42B1 #B1552A #86B12A
monochromatic
#131D4E #1E3080 #2A42B1 #455ED3 #7789DF
Accessibility & contrast
On white
8.36
#2A42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2A42B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B1
8.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B1 | 1.00 | 8.36 | 2.51 | 8.36 |
| #FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2a42b1; /* rgb */ color: rgb(42, 66, 177); /* oklch */ color: oklch(43.5% 0.178 268.3);
Tailwind
colors: {
custom: {
50: '#7976c9',
500: '#2a42b1',
950: '#000000',
},
}SCSS
$custom: #2a42b1; $custom-light: #7976c9; $custom-dark: #000000;
JSON
{
"hex": "#2a42b1",
"rgb": {
"r": 42,
"g": 66,
"b": 177
},
"hsl": {
"h": 229.333,
"s": 61.644,
"l": 42.941
},
"oklch": {
"l": 0.43492,
"c": 0.17804,
"h": 268.3
},
"luminance": 0.07563
}Semantic roles & 50–950 ramp
primary
#2A42B1
secondary
#C6B770
accent
#C843E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82