#4151AB#4151AB
#4151AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.144 H 272.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #4151AB |
|---|---|
| RGB | rgb(65, 81, 171) |
| HSL | hsl(231, 45%, 46%) |
| HSV | hsv(231, 62%, 67%) |
| CMYK | cmyk(62%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(37.75, 22.39, -50.31) |
| CIE-LCH | lch(37.75, 55.07, 293.99°) |
| OKLab | oklab(47.19% 0.0054 -0.1442) |
| OKLCH | oklch(47.19% 0.144 272.1) |
| XYZ | xyz(12.4706, 9.9479, 39.7831) |
| Luminance | 0.0995 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 5.03
Cobalt
#0047AB
ΔE00 5.63
Denim Blue
#3B5B92
ΔE00 5.94
Dusky Blue
#475F94
ΔE00 6.19
Blue Blue
#2242C7
ΔE00 6.19
Blueberry
#464196
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4151AB #AB9B41
analogous
#4186AB #4151AB #6641AB
triadic
#4151AB #AB4151 #51AB41
tetradic
#4151AB #AB4186 #AB9B41 #41AB66
square
#4151AB #AB4186 #AB9B41 #41AB66
split-complementary
#4151AB #AB6641 #86AB41
monochromatic
#1F2752 #303C7F #4151AB #6573C4 #919BD5
Accessibility & contrast
On white
7.02
#4151AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#4151AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4151AB
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4151AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4151AB | 1.00 | 7.02 | 2.99 | 7.02 |
| #FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B5EAE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #4151ab; /* rgb */ color: rgb(65, 81, 171); /* oklch */ color: oklch(47.2% 0.144 272.1);
Tailwind
colors: {
custom: {
50: '#8081c5',
500: '#4151ab',
950: '#000000',
},
}SCSS
$custom: #4151ab; $custom-light: #8081c5; $custom-dark: #000000;
JSON
{
"hex": "#4151ab",
"rgb": {
"r": 65,
"g": 81,
"b": 171
},
"hsl": {
"h": 230.943,
"s": 44.915,
"l": 46.275
},
"oklch": {
"l": 0.47187,
"c": 0.1443,
"h": 272.1
},
"luminance": 0.09949
}Semantic roles & 50–950 ramp
primary
#4151AB
secondary
#C1B887
accent
#C153D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82