#2A4EC3#2A4EC3
#2A4EC3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.187 H 266.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EC3 |
|---|---|
| RGB | rgb(42, 78, 195) |
| HSL | hsl(226, 65%, 46%) |
| HSV | hsv(226, 78%, 76%) |
| CMYK | cmyk(78.5%, 60%, 0%, 23.5%) |
| CIE-LAB | lab(37.63, 29.90, -64.68) |
| CIE-LCH | lch(37.63, 71.26, 294.81°) |
| OKLab | oklab(47.35% -0.0127 -0.187) |
| OKLCH | oklch(47.35% 0.187 266.1) |
| XYZ | xyz(13.5261, 9.8796, 52.8133) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.43
Blue Blue
#2242C7
ΔE00 3.71
Blue (survey)
#0343DF
ΔE00 4.61
Cobalt
#0047AB
ΔE00 4.75
Warm Blue
#4B57DB
ΔE00 5.72
Ocean Blue
#4F42B5
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EC3 #C39F2A
analogous
#2A9BC3 #2A4EC3 #522AC3
triadic
#2A4EC3 #C32A4E #4EC32A
tetradic
#2A4EC3 #C32A9B #C39F2A #2AC352
square
#2A4EC3 #C32A9B #C39F2A #2AC352
split-complementary
#2A4EC3 #C3522A #9BC32A
monochromatic
#14265E #1F3A91 #2A4EC3 #5171D9 #839AE4
Accessibility & contrast
On white
7.06
#2A4EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2A4EC3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EC3
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EC3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EC3 | 1.00 | 7.06 | 2.98 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a4ec3; /* rgb */ color: rgb(42, 78, 195); /* oklch */ color: oklch(47.4% 0.187 266.1);
Tailwind
colors: {
custom: {
50: '#7c7fd6',
500: '#2a4ec3',
950: '#000000',
},
}SCSS
$custom: #2a4ec3; $custom-light: #7c7fd6; $custom-dark: #000000;
JSON
{
"hex": "#2a4ec3",
"rgb": {
"r": 42,
"g": 78,
"b": 195
},
"hsl": {
"h": 225.882,
"s": 64.557,
"l": 46.471
},
"oklch": {
"l": 0.47354,
"c": 0.18741,
"h": 266.1
},
"luminance": 0.09881
}Semantic roles & 50–950 ramp
primary
#2A4EC3
secondary
#CDBA7B
accent
#C040E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83