#2A42B0#2A42B0
#2A42B0 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.177 H 268.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42B0 |
|---|---|
| RGB | rgb(42, 66, 176) |
| HSL | hsl(229, 61%, 43%) |
| HSV | hsv(229, 76%, 69%) |
| CMYK | cmyk(76.1%, 62.5%, 0%, 31%) |
| CIE-LAB | lab(32.97, 30.64, -61.11) |
| CIE-LCH | lch(32.97, 68.36, 296.63°) |
| OKLab | oklab(43.4% -0.0051 -0.1766) |
| OKLCH | oklch(43.4% 0.177 268.3) |
| XYZ | xyz(10.7368, 7.5221, 41.9519) |
| Luminance | 0.0752 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.96
Blue Blue
#2242C7
ΔE00 3.02
Cobalt
#0047AB
ΔE00 4.01
Ocean Blue
#4F42B5
ΔE00 5.18
Blueberry
#464196
ΔE00 5.57
Blue (survey)
#0343DF
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42B0 #B0982A
analogous
#2A85B0 #2A42B0 #552AB0
triadic
#2A42B0 #B02A42 #42B02A
tetradic
#2A42B0 #B02A85 #B0982A #2AB055
square
#2A42B0 #B02A85 #B0982A #2AB055
split-complementary
#2A42B0 #B0552A #85B02A
monochromatic
#121D4D #1E2F7F #2A42B0 #455ED3 #7689DE
Accessibility & contrast
On white
8.38
#2A42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2A42B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42B0
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42B0 | 1.00 | 8.38 | 2.50 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2a42b0; /* rgb */ color: rgb(42, 66, 176); /* oklch */ color: oklch(43.4% 0.177 268.3);
Tailwind
colors: {
custom: {
50: '#7876c9',
500: '#2a42b0',
950: '#000000',
},
}SCSS
$custom: #2a42b0; $custom-light: #7876c9; $custom-dark: #000000;
JSON
{
"hex": "#2a42b0",
"rgb": {
"r": 42,
"g": 66,
"b": 176
},
"hsl": {
"h": 229.254,
"s": 61.468,
"l": 42.745
},
"oklch": {
"l": 0.43401,
"c": 0.17671,
"h": 268.3
},
"luminance": 0.07523
}Semantic roles & 50–950 ramp
primary
#2A42B0
secondary
#C6B770
accent
#C843E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82