#2A4EC6#2A4EC6
#2A4EC6 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.191 H 266.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EC6 |
|---|---|
| RGB | rgb(42, 78, 198) |
| HSL | hsl(226, 65%, 47%) |
| HSV | hsv(226, 79%, 78%) |
| CMYK | cmyk(78.8%, 60.6%, 0%, 22.4%) |
| CIE-LAB | lab(37.87, 31.02, -66.03) |
| CIE-LCH | lch(37.87, 72.95, 295.17°) |
| OKLab | oklab(47.61% -0.0127 -0.1909) |
| OKLCH | oklch(47.61% 0.191 266.2) |
| XYZ | xyz(13.8687, 10.0166, 54.6176) |
| Luminance | 0.1002 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.63
Sapphire
#0F52BA
ΔE00 3.70
Blue (survey)
#0343DF
ΔE00 4.30
Cobalt
#0047AB
ΔE00 5.10
Warm Blue
#4B57DB
ΔE00 5.42
Azul
#1D5DEC
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EC6 #C6A22A
analogous
#2A9CC6 #2A4EC6 #542AC6
triadic
#2A4EC6 #C62A4E #4EC62A
tetradic
#2A4EC6 #C62A9C #C6A22A #2AC654
square
#2A4EC6 #C62A9C #C6A22A #2AC654
split-complementary
#2A4EC6 #C6542A #9CC62A
monochromatic
#152661 #1F3A94 #2A4EC6 #5372DA #859BE5
Accessibility & contrast
On white
6.99
#2A4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.00
#2A4EC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A4EC6
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EC6 | 1.00 | 6.99 | 3.00 | 6.99 |
| #FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2a4ec6; /* rgb */ color: rgb(42, 78, 198); /* oklch */ color: oklch(47.6% 0.191 266.2);
Tailwind
colors: {
custom: {
50: '#7d7fd8',
500: '#2a4ec6',
950: '#000000',
},
}SCSS
$custom: #2a4ec6; $custom-light: #7d7fd8; $custom-dark: #000000;
JSON
{
"hex": "#2a4ec6",
"rgb": {
"r": 42,
"g": 78,
"b": 198
},
"hsl": {
"h": 226.154,
"s": 65,
"l": 47.059
},
"oklch": {
"l": 0.47614,
"c": 0.19134,
"h": 266.2
},
"luminance": 0.10018
}Semantic roles & 50–950 ramp
primary
#2A4EC6
secondary
#CEBC7D
accent
#C140E8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83