#2A4EBA#2A4EBA
#2A4EBA is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.175 H 265.8°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EBA |
|---|---|
| RGB | rgb(42, 78, 186) |
| HSL | hsl(225, 63%, 45%) |
| HSV | hsv(225, 77%, 73%) |
| CMYK | cmyk(77.4%, 58.1%, 0%, 27.1%) |
| CIE-LAB | lab(36.90, 26.51, -60.60) |
| CIE-LCH | lch(36.90, 66.14, 293.63°) |
| OKLab | oklab(46.59% -0.013 -0.175) |
| OKLCH | oklch(46.59% 0.175 265.8) |
| XYZ | xyz(12.5390, 9.4848, 47.6147) |
| Luminance | 0.0949 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.79
Cobalt
#0047AB
ΔE00 3.79
Blue Blue
#2242C7
ΔE00 4.23
Blue (survey)
#0343DF
ΔE00 5.62
Cobalt (survey)
#1E488F
ΔE00 6.42
Warm Blue
#4B57DB
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EBA #BA962A
analogous
#2A96BA #2A4EBA #4E2ABA
triadic
#2A4EBA #BA2A4E #4EBA2A
tetradic
#2A4EBA #BA2A96 #BA962A #2ABA4E
square
#2A4EBA #BA2A96 #BA962A #2ABA4E
split-complementary
#2A4EBA #BA4E2A #96BA2A
monochromatic
#132456 #1F3988 #2A4EBA #4B6ED6 #7D96E2
Accessibility & contrast
On white
7.25
#2A4EBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#2A4EBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EBA
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EBA | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2a4eba; /* rgb */ color: rgb(42, 78, 186); /* oklch */ color: oklch(46.6% 0.175 265.8);
Tailwind
colors: {
custom: {
50: '#7a7fd0',
500: '#2a4eba',
950: '#000000',
},
}SCSS
$custom: #2a4eba; $custom-light: #7a7fd0; $custom-dark: #000000;
JSON
{
"hex": "#2a4eba",
"rgb": {
"r": 42,
"g": 78,
"b": 186
},
"hsl": {
"h": 225,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.46587,
"c": 0.17546,
"h": 265.8
},
"luminance": 0.09486
}Semantic roles & 50–950 ramp
primary
#2A4EBA
secondary
#CAB576
accent
#BD42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82