#2A51C3#2A51C3
#2A51C3 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.184 H 265.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2A51C3 |
|---|---|
| RGB | rgb(42, 81, 195) |
| HSL | hsl(225, 65%, 46%) |
| HSV | hsv(225, 78%, 76%) |
| CMYK | cmyk(78.5%, 58.5%, 0%, 23.5%) |
| CIE-LAB | lab(38.40, 27.94, -63.42) |
| CIE-LCH | lch(38.40, 69.30, 293.78°) |
| OKLab | oklab(47.94% -0.0146 -0.1832) |
| OKLCH | oklch(47.94% 0.184 265.4) |
| XYZ | xyz(13.7441, 10.3156, 52.8859) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.84
Blue Blue
#2242C7
ΔE00 4.70
Cobalt
#0047AB
ΔE00 5.00
Blue (survey)
#0343DF
ΔE00 5.33
Warm Blue
#4B57DB
ΔE00 5.56
Azul
#1D5DEC
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A51C3 #C39C2A
analogous
#2A9EC3 #2A51C3 #502AC3
triadic
#2A51C3 #C32A51 #51C32A
tetradic
#2A51C3 #C32A9E #C39C2A #2AC350
square
#2A51C3 #C32A9E #C39C2A #2AC350
split-complementary
#2A51C3 #C3502A #9EC32A
monochromatic
#14275E #1F3C91 #2A51C3 #5174D9 #839CE4
Accessibility & contrast
On white
6.86
#2A51C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#2A51C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A51C3
6.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A51C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A51C3 | 1.00 | 6.86 | 3.06 | 6.86 |
| #FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a51c3; /* rgb */ color: rgb(42, 81, 195); /* oklch */ color: oklch(47.9% 0.184 265.4);
Tailwind
colors: {
custom: {
50: '#7c81d6',
500: '#2a51c3',
950: '#000000',
},
}SCSS
$custom: #2a51c3; $custom-light: #7c81d6; $custom-dark: #000000;
JSON
{
"hex": "#2a51c3",
"rgb": {
"r": 42,
"g": 81,
"b": 195
},
"hsl": {
"h": 224.706,
"s": 64.557,
"l": 46.471
},
"oklch": {
"l": 0.47935,
"c": 0.18379,
"h": 265.4
},
"luminance": 0.10317
}Semantic roles & 50–950 ramp
primary
#2A51C3
secondary
#CDB87B
accent
#BD40E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83