#5157BB#5157BB
#5157BB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.155 H 276.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5157BB |
|---|---|
| RGB | rgb(81, 87, 187) |
| HSL | hsl(237, 44%, 53%) |
| HSV | hsv(237, 57%, 73%) |
| CMYK | cmyk(56.7%, 53.5%, 0%, 26.7%) |
| CIE-LAB | lab(41.46, 27.08, -53.70) |
| CIE-LCH | lch(41.46, 60.14, 296.76°) |
| OKLab | oklab(50.6% 0.0182 -0.1537) |
| OKLCH | oklch(50.6% 0.155 276.8) |
| XYZ | xyz(15.7683, 12.1525, 48.5188) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.36
Warm Blue
#4B57DB
ΔE00 4.40
Slate Blue
#6A5ACD
ΔE00 5.20
Dark Periwinkle
#665FD1
ΔE00 5.21
Light Indigo
#6D5ACF
ΔE00 5.82
Ocean Blue
#4F42B5
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5157BB #BBB551
analogous
#518CBB #5157BB #8051BB
triadic
#5157BB #BB5157 #57BB51
tetradic
#5157BB #BB518C #BBB551 #51BB80
square
#5157BB #BB518C #BBB551 #51BB80
split-complementary
#5157BB #BB8051 #8CBB51
monochromatic
#292D69 #3A3F95 #5157BB #7D81CC #A9ACDD
Accessibility & contrast
On white
6.12
#5157BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#5157BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5157BB
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5157BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5157BB | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B66BE
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#146E80
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5157bb; /* rgb */ color: rgb(81, 87, 187); /* oklch */ color: oklch(50.6% 0.155 276.8);
Tailwind
colors: {
custom: {
50: '#8b86d0',
500: '#5157bb',
950: '#000000',
},
}SCSS
$custom: #5157bb; $custom-light: #8b86d0; $custom-dark: #000000;
JSON
{
"hex": "#5157bb",
"rgb": {
"r": 81,
"g": 87,
"b": 187
},
"hsl": {
"h": 236.604,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.50596,
"c": 0.15477,
"h": 276.8
},
"luminance": 0.12154
}Semantic roles & 50–950 ramp
primary
#5157BB
secondary
#CBC89D
accent
#CC54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82