#5155BF#5155BF
#5155BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.163 H 277.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #5155BF |
|---|---|
| RGB | rgb(81, 85, 191) |
| HSL | hsl(238, 46%, 53%) |
| HSV | hsv(238, 58%, 75%) |
| CMYK | cmyk(57.6%, 55.5%, 0%, 25.1%) |
| CIE-LAB | lab(41.23, 29.66, -56.40) |
| CIE-LCH | lch(41.23, 63.72, 297.73°) |
| OKLab | oklab(50.51% 0.0205 -0.1617) |
| OKLCH | oklch(50.51% 0.163 277.2) |
| XYZ | xyz(16.0428, 12.0068, 50.7523) |
| Luminance | 0.1201 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.09
Warm Blue
#4B57DB
ΔE00 3.89
Slate Blue
#6A5ACD
ΔE00 4.91
Dark Periwinkle
#665FD1
ΔE00 5.11
Light Indigo
#6D5ACF
ΔE00 5.50
Ocean Blue
#4F42B5
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5155BF #BFBB51
analogous
#518CBF #5155BF #8451BF
triadic
#5155BF #BF5155 #55BF51
tetradic
#5155BF #BF518C #BFBB51 #51BF84
square
#5155BF #BF518C #BFBB51 #51BF84
split-complementary
#5155BF #BF8451 #8CBF51
monochromatic
#282B6D #393C9A #5155BF #7E81CF #AAACE0
Accessibility & contrast
On white
6.17
#5155BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#5155BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5155BF
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5155BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5155BF | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0566C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#0B6E82
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5155bf; /* rgb */ color: rgb(81, 85, 191); /* oklch */ color: oklch(50.5% 0.163 277.2);
Tailwind
colors: {
custom: {
50: '#8b85d3',
500: '#5155bf',
950: '#000000',
},
}SCSS
$custom: #5155bf; $custom-light: #8b85d3; $custom-dark: #000000;
JSON
{
"hex": "#5155bf",
"rgb": {
"r": 81,
"g": 85,
"b": 191
},
"hsl": {
"h": 237.818,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.50511,
"c": 0.16297,
"h": 277.2
},
"luminance": 0.12008
}Semantic roles & 50–950 ramp
primary
#5155BF
secondary
#CECC9E
accent
#D152D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83