#2A4DBA#2A4DBA
#2A4DBA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.177 H 266.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4DBA |
|---|---|
| RGB | rgb(42, 77, 186) |
| HSL | hsl(225, 63%, 45%) |
| HSV | hsv(225, 77%, 73%) |
| CMYK | cmyk(77.4%, 58.6%, 0%, 27.1%) |
| CIE-LAB | lab(36.64, 27.17, -61.03) |
| CIE-LCH | lch(36.64, 66.80, 294.00°) |
| OKLab | oklab(46.39% -0.0123 -0.1763) |
| OKLCH | oklch(46.39% 0.177 266) |
| XYZ | xyz(12.4685, 9.3438, 47.5912) |
| Luminance | 0.0935 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.06
Cobalt
#0047AB
ΔE00 3.72
Blue Blue
#2242C7
ΔE00 3.92
Blue (survey)
#0343DF
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 6.44
Sapphire (survey)
#2138AB
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4DBA #BA972A
analogous
#2A95BA #2A4DBA #4F2ABA
triadic
#2A4DBA #BA2A4D #4DBA2A
tetradic
#2A4DBA #BA2A95 #BA972A #2ABA4F
square
#2A4DBA #BA2A95 #BA972A #2ABA4F
split-complementary
#2A4DBA #BA4F2A #95BA2A
monochromatic
#132456 #1F3888 #2A4DBA #4B6DD6 #7D95E2
Accessibility & contrast
On white
7.32
#2A4DBA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#2A4DBA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4DBA
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4DBA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4DBA | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #2a4dba; /* rgb */ color: rgb(42, 77, 186); /* oklch */ color: oklch(46.4% 0.177 266.0);
Tailwind
colors: {
custom: {
50: '#7a7ed0',
500: '#2a4dba',
950: '#000000',
},
}SCSS
$custom: #2a4dba; $custom-light: #7a7ed0; $custom-dark: #000000;
JSON
{
"hex": "#2a4dba",
"rgb": {
"r": 42,
"g": 77,
"b": 186
},
"hsl": {
"h": 225.417,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.4639,
"c": 0.17669,
"h": 266
},
"luminance": 0.09345
}Semantic roles & 50–950 ramp
primary
#2A4DBA
secondary
#CAB676
accent
#BE42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82