#2A5EC1#2A5EC1
#2A5EC1 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.165 H 261.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2A5EC1 |
|---|---|
| RGB | rgb(42, 94, 193) |
| HSL | hsl(219, 64%, 46%) |
| HSV | hsv(219, 78%, 76%) |
| CMYK | cmyk(78.2%, 51.3%, 0%, 24.3%) |
| CIE-LAB | lab(41.76, 18.68, -56.80) |
| CIE-LCH | lch(41.76, 59.79, 288.21°) |
| OKLab | oklab(50.43% -0.0239 -0.1635) |
| OKLCH | oklch(50.43% 0.165 261.7) |
| XYZ | xyz(14.5797, 12.3462, 52.0564) |
| Luminance | 0.1235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.38
Sapphire
#0F52BA
ΔE00 4.06
French Blue
#436BAD
ΔE00 4.97
Azul
#1D5DEC
ΔE00 5.39
Mid Blue
#276AB3
ΔE00 5.44
Denim Blue
#3B5B92
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A5EC1 #C18D2A
analogous
#2AA9C1 #2A5EC1 #422AC1
triadic
#2A5EC1 #C12A5E #5EC12A
tetradic
#2A5EC1 #C12AA9 #C18D2A #2AC142
square
#2A5EC1 #C12AA9 #C18D2A #2AC142
split-complementary
#2A5EC1 #C1422A #A9C12A
monochromatic
#142D5C #1F468F #2A5EC1 #4F7FD9 #82A3E4
Accessibility & contrast
On white
6.05
#2A5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#2A5EC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A5EC1
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A5EC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A5EC1 | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D6AC5
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #2a5ec1; /* rgb */ color: rgb(42, 94, 193); /* oklch */ color: oklch(50.4% 0.165 261.7);
Tailwind
colors: {
custom: {
50: '#7b8bd4',
500: '#2a5ec1',
950: '#000000',
},
}SCSS
$custom: #2a5ec1; $custom-light: #7b8bd4; $custom-dark: #000000;
JSON
{
"hex": "#2a5ec1",
"rgb": {
"r": 42,
"g": 94,
"b": 193
},
"hsl": {
"h": 219.338,
"s": 64.255,
"l": 46.078
},
"oklch": {
"l": 0.50426,
"c": 0.16527,
"h": 261.7
},
"luminance": 0.12348
}Semantic roles & 50–950 ramp
primary
#2A5EC1
secondary
#CDB07A
accent
#AE41E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83