#2A4EC7#2A4EC7
#2A4EC7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.193 H 266.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EC7 |
|---|---|
| RGB | rgb(42, 78, 199) |
| HSL | hsl(226, 65%, 47%) |
| HSV | hsv(226, 79%, 78%) |
| CMYK | cmyk(78.9%, 60.8%, 0%, 22%) |
| CIE-LAB | lab(37.96, 31.40, -66.47) |
| CIE-LCH | lch(37.96, 73.52, 295.28°) |
| OKLab | oklab(47.7% -0.0127 -0.1922) |
| OKLCH | oklch(47.7% 0.193 266.2) |
| XYZ | xyz(13.9844, 10.0629, 55.2271) |
| Luminance | 0.1007 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.61
Sapphire
#0F52BA
ΔE00 3.80
Blue (survey)
#0343DF
ΔE00 4.21
Cobalt
#0047AB
ΔE00 5.22
Warm Blue
#4B57DB
ΔE00 5.32
Azul
#1D5DEC
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EC7 #C7A32A
analogous
#2A9DC7 #2A4EC7 #552AC7
triadic
#2A4EC7 #C72A4E #4EC72A
tetradic
#2A4EC7 #C72A9D #C7A32A #2AC755
square
#2A4EC7 #C72A9D #C7A32A #2AC755
split-complementary
#2A4EC7 #C7552A #9DC72A
monochromatic
#152662 #1F3A94 #2A4EC7 #5372DB #869CE5
Accessibility & contrast
On white
6.97
#2A4EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#2A4EC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A4EC7
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EC7 | 1.00 | 6.97 | 3.01 | 6.97 |
| #FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a4ec7; /* rgb */ color: rgb(42, 78, 199); /* oklch */ color: oklch(47.7% 0.193 266.2);
Tailwind
colors: {
custom: {
50: '#7d7fd9',
500: '#2a4ec7',
950: '#000000',
},
}SCSS
$custom: #2a4ec7; $custom-light: #7d7fd9; $custom-dark: #000000;
JSON
{
"hex": "#2a4ec7",
"rgb": {
"r": 42,
"g": 78,
"b": 199
},
"hsl": {
"h": 226.242,
"s": 65.145,
"l": 47.255
},
"oklch": {
"l": 0.47702,
"c": 0.19265,
"h": 266.2
},
"luminance": 0.10065
}Semantic roles & 50–950 ramp
primary
#2A4EC7
secondary
#CFBC7E
accent
#C140E8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83