#2A51C4#2A51C4
#2A51C4 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.185 H 265.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51C4 |
|---|---|
| RGB | rgb(42, 81, 196) |
| HSL | hsl(225, 65%, 47%) |
| HSV | hsv(225, 79%, 77%) |
| CMYK | cmyk(78.6%, 58.7%, 0%, 23.1%) |
| CIE-LAB | lab(38.48, 28.32, -63.87) |
| CIE-LCH | lch(38.48, 69.87, 293.91°) |
| OKLab | oklab(48.02% -0.0146 -0.1845) |
| OKLCH | oklch(48.02% 0.185 265.5) |
| XYZ | xyz(13.8576, 10.3610, 53.4834) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.94
Blue Blue
#2242C7
ΔE00 4.67
Cobalt
#0047AB
ΔE00 5.11
Blue (survey)
#0343DF
ΔE00 5.24
Warm Blue
#4B57DB
ΔE00 5.45
Azul
#1D5DEC
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51C4 #C49D2A
analogous
#2A9EC4 #2A51C4 #502AC4
triadic
#2A51C4 #C42A51 #51C42A
tetradic
#2A51C4 #C42A9E #C49D2A #2AC450
square
#2A51C4 #C42A9E #C49D2A #2AC450
split-complementary
#2A51C4 #C4502A #9EC42A
monochromatic
#14275F #1F3C92 #2A51C4 #5174DA #849CE5
Accessibility & contrast
On white
6.83
#2A51C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#2A51C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A51C4
6.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51C4 | 1.00 | 6.83 | 3.07 | 6.83 |
| #FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a51c4; /* rgb */ color: rgb(42, 81, 196); /* oklch */ color: oklch(48.0% 0.185 265.5);
Tailwind
colors: {
custom: {
50: '#7c81d7',
500: '#2a51c4',
950: '#000000',
},
}SCSS
$custom: #2a51c4; $custom-light: #7c81d7; $custom-dark: #000000;
JSON
{
"hex": "#2a51c4",
"rgb": {
"r": 42,
"g": 81,
"b": 196
},
"hsl": {
"h": 224.805,
"s": 64.706,
"l": 46.667
},
"oklch": {
"l": 0.48019,
"c": 0.18512,
"h": 265.5
},
"luminance": 0.10363
}Semantic roles & 50–950 ramp
primary
#2A51C4
secondary
#CEB97C
accent
#BD40E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83