#2A52C1#2A52C1
#2A52C1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.180 H 265.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2A52C1 |
|---|---|
| RGB | rgb(42, 82, 193) |
| HSL | hsl(224, 64%, 46%) |
| HSV | hsv(224, 78%, 76%) |
| CMYK | cmyk(78.2%, 57.5%, 0%, 24.3%) |
| CIE-LAB | lab(38.51, 26.53, -62.08) |
| CIE-LCH | lch(38.51, 67.51, 293.14°) |
| OKLab | oklab(47.96% -0.0154 -0.1793) |
| OKLCH | oklch(47.96% 0.18 265.1) |
| XYZ | xyz(13.5944, 10.3755, 51.7279) |
| Luminance | 0.1038 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.49
Cobalt
#0047AB
ΔE00 4.93
Blue Blue
#2242C7
ΔE00 5.12
Warm Blue
#4B57DB
ΔE00 5.77
Blue (survey)
#0343DF
ΔE00 5.78
Denim
#1560BD
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A52C1 #C1992A
analogous
#2A9DC1 #2A52C1 #4D2AC1
triadic
#2A52C1 #C12A52 #52C12A
tetradic
#2A52C1 #C12A9D #C1992A #2AC14D
square
#2A52C1 #C12A9D #C1992A #2AC14D
split-complementary
#2A52C1 #C14D2A #9DC12A
monochromatic
#14275C #1F3D8F #2A52C1 #4F74D9 #829CE4
Accessibility & contrast
On white
6.83
#2A52C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#2A52C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A52C1
6.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A52C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A52C1 | 1.00 | 6.83 | 3.08 | 6.83 |
| #FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2a52c1; /* rgb */ color: rgb(42, 82, 193); /* oklch */ color: oklch(48.0% 0.180 265.1);
Tailwind
colors: {
custom: {
50: '#7b82d5',
500: '#2a52c1',
950: '#000000',
},
}SCSS
$custom: #2a52c1; $custom-light: #7b82d5; $custom-dark: #000000;
JSON
{
"hex": "#2a52c1",
"rgb": {
"r": 42,
"g": 82,
"b": 193
},
"hsl": {
"h": 224.106,
"s": 64.255,
"l": 46.078
},
"oklch": {
"l": 0.47964,
"c": 0.17993,
"h": 265.1
},
"luminance": 0.10377
}Semantic roles & 50–950 ramp
primary
#2A52C1
secondary
#CDB77A
accent
#BB41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83