#2A4EC1#2A4EC1
#2A4EC1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.185 H 266.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EC1 |
|---|---|
| RGB | rgb(42, 78, 193) |
| HSL | hsl(226, 64%, 46%) |
| HSV | hsv(226, 78%, 76%) |
| CMYK | cmyk(78.2%, 59.6%, 0%, 24.3%) |
| CIE-LAB | lab(37.46, 29.15, -63.78) |
| CIE-LCH | lch(37.46, 70.13, 294.56°) |
| OKLab | oklab(47.18% -0.0128 -0.1843) |
| OKLCH | oklch(47.18% 0.185 266) |
| XYZ | xyz(13.3015, 9.7897, 51.6303) |
| Luminance | 0.0979 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.26
Blue Blue
#2242C7
ΔE00 3.79
Cobalt
#0047AB
ΔE00 4.53
Blue (survey)
#0343DF
ΔE00 4.82
Warm Blue
#4B57DB
ΔE00 5.93
Ocean Blue
#4F42B5
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EC1 #C19D2A
analogous
#2A99C1 #2A4EC1 #512AC1
triadic
#2A4EC1 #C12A4E #4EC12A
tetradic
#2A4EC1 #C12A99 #C19D2A #2AC151
square
#2A4EC1 #C12A99 #C19D2A #2AC151
split-complementary
#2A4EC1 #C1512A #99C12A
monochromatic
#14255C #1F3A8F #2A4EC1 #4F70D9 #8299E4
Accessibility & contrast
On white
7.10
#2A4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#2A4EC1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EC1
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EC1 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #2a4ec1; /* rgb */ color: rgb(42, 78, 193); /* oklch */ color: oklch(47.2% 0.185 266.0);
Tailwind
colors: {
custom: {
50: '#7c7fd5',
500: '#2a4ec1',
950: '#000000',
},
}SCSS
$custom: #2a4ec1; $custom-light: #7c7fd5; $custom-dark: #000000;
JSON
{
"hex": "#2a4ec1",
"rgb": {
"r": 42,
"g": 78,
"b": 193
},
"hsl": {
"h": 225.695,
"s": 64.255,
"l": 46.078
},
"oklch": {
"l": 0.47182,
"c": 0.18477,
"h": 266
},
"luminance": 0.09791
}Semantic roles & 50–950 ramp
primary
#2A4EC1
secondary
#CDB97A
accent
#C041E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83