#2F52B5#2F52B5
#2F52B5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.162 H 265.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2F52B5 |
|---|---|
| RGB | rgb(47, 82, 181) |
| HSL | hsl(224, 59%, 45%) |
| HSV | hsv(224, 74%, 71%) |
| CMYK | cmyk(74%, 54.7%, 0%, 29%) |
| CIE-LAB | lab(37.80, 22.58, -56.19) |
| CIE-LCH | lch(37.80, 60.56, 291.89°) |
| OKLab | oklab(47.2% -0.0121 -0.1619) |
| OKLCH | oklch(47.2% 0.162 265.7) |
| XYZ | xyz(12.5271, 9.9738, 44.9720) |
| Luminance | 0.0998 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.29
Cobalt
#0047AB
ΔE00 4.27
Denim Blue
#3B5B92
ΔE00 5.65
Blue Blue
#2242C7
ΔE00 5.72
Dusk Blue
#26538D
ΔE00 6.06
Denim
#1560BD
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F52B5 #B5922F
analogous
#2F95B5 #2F52B5 #4F2FB5
triadic
#2F52B5 #B52F52 #52B52F
tetradic
#2F52B5 #B52F95 #B5922F #2FB54F
square
#2F52B5 #B52F95 #B5922F #2FB54F
split-complementary
#2F52B5 #B54F2F #95B52F
monochromatic
#162654 #223C84 #2F52B5 #5072D1 #8099DE
Accessibility & contrast
On white
7.01
#2F52B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#2F52B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F52B5
7.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F52B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F52B5 | 1.00 | 7.01 | 2.99 | 7.01 |
| #FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2f52b5; /* rgb */ color: rgb(47, 82, 181); /* oklch */ color: oklch(47.2% 0.162 265.7);
Tailwind
colors: {
custom: {
50: '#7a82cc',
500: '#2f52b5',
950: '#000000',
},
}SCSS
$custom: #2f52b5; $custom-light: #7a82cc; $custom-dark: #000000;
JSON
{
"hex": "#2f52b5",
"rgb": {
"r": 47,
"g": 82,
"b": 181
},
"hsl": {
"h": 224.328,
"s": 58.772,
"l": 44.706
},
"oklch": {
"l": 0.47196,
"c": 0.16233,
"h": 265.7
},
"luminance": 0.09975
}Semantic roles & 50–950 ramp
primary
#2F52B5
secondary
#C7B379
accent
#B946E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82