#4151B5#4151B5
#4151B5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.158 H 272.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #4151B5 |
|---|---|
| RGB | rgb(65, 81, 181) |
| HSL | hsl(232, 47%, 48%) |
| HSV | hsv(232, 64%, 71%) |
| CMYK | cmyk(64.1%, 55.2%, 0%, 29%) |
| CIE-LAB | lab(38.45, 25.91, -55.09) |
| CIE-LCH | lch(38.45, 60.88, 295.19°) |
| OKLab | oklab(47.94% 0.006 -0.1582) |
| OKLCH | oklch(47.94% 0.158 272.2) |
| XYZ | xyz(13.4601, 10.3437, 44.9943) |
| Luminance | 0.1035 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 4.88
Blue Blue
#2242C7
ΔE00 5.33
Ocean Blue
#4F42B5
ΔE00 5.76
Warm Blue
#4B57DB
ΔE00 5.77
Cobalt
#0047AB
ΔE00 5.91
Iris
#6258C4
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4151B5 #B5A541
analogous
#418BB5 #4151B5 #6B41B5
triadic
#4151B5 #B54151 #51B541
tetradic
#4151B5 #B5418B #B5A541 #41B56B
square
#4151B5 #B5418B #B5A541 #41B56B
split-complementary
#4151B5 #B56B41 #8BB541
monochromatic
#21295B #313D88 #4151B5 #6A77C9 #97A0DA
Accessibility & contrast
On white
6.84
#4151B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#4151B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #4151B5
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4151B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4151B5 | 1.00 | 6.84 | 3.07 | 6.84 |
| #FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #4151b5; /* rgb */ color: rgb(65, 81, 181); /* oklch */ color: oklch(47.9% 0.158 272.2);
Tailwind
colors: {
custom: {
50: '#8281cc',
500: '#4151b5',
950: '#000000',
},
}SCSS
$custom: #4151b5; $custom-light: #8281cc; $custom-dark: #000000;
JSON
{
"hex": "#4151b5",
"rgb": {
"r": 65,
"g": 81,
"b": 181
},
"hsl": {
"h": 231.724,
"s": 47.154,
"l": 48.235
},
"oklch": {
"l": 0.4794,
"c": 0.15836,
"h": 272.2
},
"luminance": 0.10345
}Semantic roles & 50–950 ramp
primary
#4151B5
secondary
#C5BD8C
accent
#C451D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82