#2A42BC#2A42BC
#2A42BC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.192 H 268.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42BC |
|---|---|
| RGB | rgb(42, 66, 188) |
| HSL | hsl(230, 63%, 45%) |
| HSV | hsv(230, 78%, 74%) |
| CMYK | cmyk(77.7%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(34.02, 35.07, -66.48) |
| CIE-LCH | lch(34.02, 75.16, 297.81°) |
| OKLab | oklab(44.5% -0.0055 -0.1924) |
| OKLCH | oklch(44.5% 0.192 268.4) |
| XYZ | xyz(11.9770, 8.0182, 48.4836) |
| Luminance | 0.0802 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 1.40
Sapphire (survey)
#2138AB
ΔE00 3.61
Blue (survey)
#0343DF
ΔE00 4.25
Ocean Blue
#4F42B5
ΔE00 4.70
Cobalt
#0047AB
ΔE00 4.97
Blue With A Hint Of Purple
#533CC6
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42BC #BCA42A
analogous
#2A8BBC #2A42BC #5B2ABC
triadic
#2A42BC #BC2A42 #42BC2A
tetradic
#2A42BC #BC2A8B #BCA42A #2ABC5B
square
#2A42BC #BC2A8B #BCA42A #2ABC5B
split-complementary
#2A42BC #BC5B2A #8BBC2A
monochromatic
#141F58 #1F308A #2A42BC #4C63D7 #7E8FE2
Accessibility & contrast
On white
8.06
#2A42BC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#2A42BC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42BC
8.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42BC | 1.00 | 8.06 | 2.60 | 8.06 |
| #FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2a42bc; /* rgb */ color: rgb(42, 66, 188); /* oklch */ color: oklch(44.5% 0.192 268.4);
Tailwind
colors: {
custom: {
50: '#7b76d1',
500: '#2a42bc',
950: '#000000',
},
}SCSS
$custom: #2a42bc; $custom-light: #7b76d1; $custom-dark: #000000;
JSON
{
"hex": "#2a42bc",
"rgb": {
"r": 42,
"g": 66,
"b": 188
},
"hsl": {
"h": 230.137,
"s": 63.478,
"l": 45.098
},
"oklch": {
"l": 0.44502,
"c": 0.19246,
"h": 268.4
},
"luminance": 0.0802
}Semantic roles & 50–950 ramp
primary
#2A42BC
secondary
#CBBD77
accent
#CB41E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83