#2A54BA#2A54BA
#2A54BA is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.168 H 264.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54BA |
|---|---|
| RGB | rgb(42, 84, 186) |
| HSL | hsl(223, 63%, 45%) |
| HSV | hsv(223, 77%, 73%) |
| CMYK | cmyk(77.4%, 54.8%, 0%, 27.1%) |
| CIE-LAB | lab(38.51, 22.56, -57.98) |
| CIE-LCH | lch(38.51, 62.22, 291.26°) |
| OKLab | oklab(47.8% -0.0172 -0.1672) |
| OKLCH | oklch(47.8% 0.168 264.1) |
| XYZ | xyz(12.9849, 10.3766, 47.7634) |
| Luminance | 0.1038 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.77
Cobalt
#0047AB
ΔE00 4.74
Denim
#1560BD
ΔE00 5.17
Denim Blue
#3B5B92
ΔE00 5.70
Dusk Blue
#26538D
ΔE00 6.17
Blue Blue
#2242C7
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54BA #BA902A
analogous
#2A9CBA #2A54BA #482ABA
triadic
#2A54BA #BA2A54 #54BA2A
tetradic
#2A54BA #BA2A9C #BA902A #2ABA48
square
#2A54BA #BA2A9C #BA902A #2ABA48
split-complementary
#2A54BA #BA482A #9CBA2A
monochromatic
#132756 #1F3D88 #2A54BA #4B74D6 #7D9AE2
Accessibility & contrast
On white
6.83
#2A54BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#2A54BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54BA
6.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54BA | 1.00 | 6.83 | 3.08 | 6.83 |
| #FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a54ba; /* rgb */ color: rgb(42, 84, 186); /* oklch */ color: oklch(47.8% 0.168 264.1);
Tailwind
colors: {
custom: {
50: '#7983cf',
500: '#2a54ba',
950: '#000000',
},
}SCSS
$custom: #2a54ba; $custom-light: #7983cf; $custom-dark: #000000;
JSON
{
"hex": "#2a54ba",
"rgb": {
"r": 42,
"g": 84,
"b": 186
},
"hsl": {
"h": 222.5,
"s": 63.158,
"l": 44.706
},
"oklch": {
"l": 0.47798,
"c": 0.16808,
"h": 264.1
},
"luminance": 0.10378
}Semantic roles & 50–950 ramp
primary
#2A54BA
secondary
#CAB176
accent
#B642E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82