#2A54C0#2A54C0
#2A54C0 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.176 H 264.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A54C0 |
|---|---|
| RGB | rgb(42, 84, 192) |
| HSL | hsl(223, 64%, 46%) |
| HSV | hsv(223, 78%, 75%) |
| CMYK | cmyk(78.1%, 56.3%, 0%, 24.7%) |
| CIE-LAB | lab(38.96, 24.84, -60.76) |
| CIE-LCH | lch(38.96, 65.64, 292.24°) |
| OKLab | oklab(48.28% -0.0168 -0.1753) |
| OKLCH | oklch(48.28% 0.176 264.5) |
| XYZ | xyz(13.6362, 10.6371, 51.1934) |
| Luminance | 0.1064 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.22
Cobalt
#0047AB
ΔE00 5.19
Denim
#1560BD
ΔE00 5.40
Blue Blue
#2242C7
ΔE00 5.84
Warm Blue
#4B57DB
ΔE00 5.92
Azul
#1D5DEC
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A54C0 #C0962A
analogous
#2A9FC0 #2A54C0 #4B2AC0
triadic
#2A54C0 #C02A54 #54C02A
tetradic
#2A54C0 #C02A9F #C0962A #2AC04B
square
#2A54C0 #C02A9F #C0962A #2AC04B
split-complementary
#2A54C0 #C04B2A #9FC02A
monochromatic
#14285C #1F3E8E #2A54C0 #4F75D8 #819DE3
Accessibility & contrast
On white
6.71
#2A54C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#2A54C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A54C0
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A54C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A54C0 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#0055BE
Tritanopia (blue-blind)
#006F82
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #2a54c0; /* rgb */ color: rgb(42, 84, 192); /* oklch */ color: oklch(48.3% 0.176 264.5);
Tailwind
colors: {
custom: {
50: '#7b83d4',
500: '#2a54c0',
950: '#000000',
},
}SCSS
$custom: #2a54c0; $custom-light: #7b83d4; $custom-dark: #000000;
JSON
{
"hex": "#2a54c0",
"rgb": {
"r": 42,
"g": 84,
"b": 192
},
"hsl": {
"h": 223.2,
"s": 64.103,
"l": 45.882
},
"oklch": {
"l": 0.48281,
"c": 0.17615,
"h": 264.5
},
"luminance": 0.10639
}Semantic roles & 50–950 ramp
primary
#2A54C0
secondary
#CCB57A
accent
#B941E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83