#2A51C1#2A51C1
#2A51C1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.181 H 265.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51C1 |
|---|---|
| RGB | rgb(42, 81, 193) |
| HSL | hsl(225, 64%, 46%) |
| HSV | hsv(225, 78%, 76%) |
| CMYK | cmyk(78.2%, 58%, 0%, 24.3%) |
| CIE-LAB | lab(38.24, 27.19, -62.51) |
| CIE-LCH | lch(38.24, 68.16, 293.51°) |
| OKLab | oklab(47.77% -0.0147 -0.1805) |
| OKLCH | oklch(47.77% 0.181 265.3) |
| XYZ | xyz(13.5195, 10.2258, 51.7030) |
| Luminance | 0.1023 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.64
Blue Blue
#2242C7
ΔE00 4.78
Cobalt
#0047AB
ΔE00 4.80
Blue (survey)
#0343DF
ΔE00 5.52
Warm Blue
#4B57DB
ΔE00 5.78
Denim
#1560BD
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51C1 #C19A2A
analogous
#2A9CC1 #2A51C1 #4E2AC1
triadic
#2A51C1 #C12A51 #51C12A
tetradic
#2A51C1 #C12A9C #C19A2A #2AC14E
square
#2A51C1 #C12A9C #C19A2A #2AC14E
split-complementary
#2A51C1 #C14E2A #9CC12A
monochromatic
#14275C #1F3C8F #2A51C1 #4F73D9 #829BE4
Accessibility & contrast
On white
6.90
#2A51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#2A51C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A51C1
6.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51C1 | 1.00 | 6.90 | 3.05 | 6.90 |
| #FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a51c1; /* rgb */ color: rgb(42, 81, 193); /* oklch */ color: oklch(47.8% 0.181 265.3);
Tailwind
colors: {
custom: {
50: '#7b81d5',
500: '#2a51c1',
950: '#000000',
},
}SCSS
$custom: #2a51c1; $custom-light: #7b81d5; $custom-dark: #000000;
JSON
{
"hex": "#2a51c1",
"rgb": {
"r": 42,
"g": 81,
"b": 193
},
"hsl": {
"h": 224.503,
"s": 64.255,
"l": 46.078
},
"oklch": {
"l": 0.47767,
"c": 0.18114,
"h": 265.3
},
"luminance": 0.10227
}Semantic roles & 50–950 ramp
primary
#2A51C1
secondary
#CDB77A
accent
#BC41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83