#2A4EBC#2A4EBC
#2A4EBC is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.178 H 265.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EBC |
|---|---|
| RGB | rgb(42, 78, 188) |
| HSL | hsl(225, 63%, 45%) |
| HSV | hsv(225, 78%, 74%) |
| CMYK | cmyk(77.7%, 58.5%, 0%, 26.3%) |
| CIE-LAB | lab(37.06, 27.27, -61.51) |
| CIE-LCH | lch(37.06, 67.28, 293.91°) |
| OKLab | oklab(46.76% -0.0129 -0.1777) |
| OKLCH | oklch(46.76% 0.178 265.8) |
| XYZ | xyz(12.7531, 9.5704, 48.7423) |
| Luminance | 0.0957 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.90
Cobalt
#0047AB
ΔE00 3.99
Blue Blue
#2242C7
ΔE00 4.08
Blue (survey)
#0343DF
ΔE00 5.38
Warm Blue
#4B57DB
ΔE00 6.48
Cobalt (survey)
#1E488F
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EBC #BC982A
analogous
#2A97BC #2A4EBC #4F2ABC
triadic
#2A4EBC #BC2A4E #4EBC2A
tetradic
#2A4EBC #BC2A97 #BC982A #2ABC4F
square
#2A4EBC #BC2A97 #BC982A #2ABC4F
split-complementary
#2A4EBC #BC4F2A #97BC2A
monochromatic
#142458 #1F398A #2A4EBC #4C6ED7 #7E97E2
Accessibility & contrast
On white
7.21
#2A4EBC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#2A4EBC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EBC
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EBC | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2a4ebc; /* rgb */ color: rgb(42, 78, 188); /* oklch */ color: oklch(46.8% 0.178 265.8);
Tailwind
colors: {
custom: {
50: '#7a7fd1',
500: '#2a4ebc',
950: '#000000',
},
}SCSS
$custom: #2a4ebc; $custom-light: #7a7fd1; $custom-dark: #000000;
JSON
{
"hex": "#2a4ebc",
"rgb": {
"r": 42,
"g": 78,
"b": 188
},
"hsl": {
"h": 225.205,
"s": 63.478,
"l": 45.098
},
"oklch": {
"l": 0.46756,
"c": 0.17814,
"h": 265.8
},
"luminance": 0.09572
}Semantic roles & 50–950 ramp
primary
#2A4EBC
secondary
#CBB677
accent
#BE41E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82