#2A51C0#2A51C0
#2A51C0 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.180 H 265.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51C0 |
|---|---|
| RGB | rgb(42, 81, 192) |
| HSL | hsl(224, 64%, 46%) |
| HSV | hsv(224, 78%, 75%) |
| CMYK | cmyk(78.1%, 57.8%, 0%, 24.7%) |
| CIE-LAB | lab(38.17, 26.81, -62.05) |
| CIE-LCH | lch(38.17, 67.60, 293.37°) |
| OKLab | oklab(47.68% -0.0148 -0.1792) |
| OKLCH | oklch(47.68% 0.18 265.3) |
| XYZ | xyz(13.4083, 10.1813, 51.1175) |
| Luminance | 0.1018 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.55
Cobalt
#0047AB
ΔE00 4.70
Blue Blue
#2242C7
ΔE00 4.83
Blue (survey)
#0343DF
ΔE00 5.62
Warm Blue
#4B57DB
ΔE00 5.90
Denim
#1560BD
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51C0 #C0992A
analogous
#2A9CC0 #2A51C0 #4E2AC0
triadic
#2A51C0 #C02A51 #51C02A
tetradic
#2A51C0 #C02A9C #C0992A #2AC04E
square
#2A51C0 #C02A9C #C0992A #2AC04E
split-complementary
#2A51C0 #C04E2A #9CC02A
monochromatic
#14275C #1F3C8E #2A51C0 #4F73D8 #819BE3
Accessibility & contrast
On white
6.92
#2A51C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.04
#2A51C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A51C0
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51C0 | 1.00 | 6.92 | 3.04 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a51c0; /* rgb */ color: rgb(42, 81, 192); /* oklch */ color: oklch(47.7% 0.180 265.3);
Tailwind
colors: {
custom: {
50: '#7b81d4',
500: '#2a51c0',
950: '#000000',
},
}SCSS
$custom: #2a51c0; $custom-light: #7b81d4; $custom-dark: #000000;
JSON
{
"hex": "#2a51c0",
"rgb": {
"r": 42,
"g": 81,
"b": 192
},
"hsl": {
"h": 224.4,
"s": 64.103,
"l": 45.882
},
"oklch": {
"l": 0.47683,
"c": 0.17982,
"h": 265.3
},
"luminance": 0.10183
}Semantic roles & 50–950 ramp
primary
#2A51C0
secondary
#CCB77A
accent
#BC41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83