#5157C8#5157C8
#5157C8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.173 H 276.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).
Color values
| HEX | #5157C8 |
|---|---|
| RGB | rgb(81, 87, 200) |
| HSL | hsl(237, 52%, 55%) |
| HSV | hsv(237, 60%, 78%) |
| CMYK | cmyk(59.5%, 56.5%, 0%, 21.6%) |
| CIE-LAB | lab(42.36, 31.39, -59.79) |
| CIE-LCH | lch(42.36, 67.53, 297.70°) |
| OKLab | oklab(51.56% 0.0187 -0.1716) |
| OKLCH | oklch(51.56% 0.173 276.2) |
| XYZ | xyz(17.2235, 12.7346, 56.1828) |
| Luminance | 0.1274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.56
Iris
#6258C4
ΔE00 2.99
Dark Periwinkle
#665FD1
ΔE00 4.24
Slate Blue
#6A5ACD
ΔE00 4.39
Light Indigo
#6D5ACF
ΔE00 4.97
Azul
#1D5DEC
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5157C8 #C8C251
analogous
#5192C8 #5157C8 #8751C8
triadic
#5157C8 #C85157 #57C851
tetradic
#5157C8 #C85192 #C8C251 #51C887
square
#5157C8 #C85192 #C8C251 #51C887
split-complementary
#5157C8 #C88751 #92C851
monochromatic
#262A79 #353BA7 #5157C8 #8084D7 #AEB1E5
Accessibility & contrast
On white
5.92
#5157C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#5157C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5157C8
5.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5157C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5157C8 | 1.00 | 5.92 | 3.55 | 5.92 |
| #FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5157c8; /* rgb */ color: rgb(81, 87, 200); /* oklch */ color: oklch(51.6% 0.173 276.2);
Tailwind
colors: {
custom: {
50: '#8d86d9',
500: '#5157c8',
950: '#000000',
},
}SCSS
$custom: #5157c8; $custom-light: #8d86d9; $custom-dark: #000000;
JSON
{
"hex": "#5157c8",
"rgb": {
"r": 81,
"g": 87,
"b": 200
},
"hsl": {
"h": 236.975,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.51558,
"c": 0.17264,
"h": 276.2
},
"luminance": 0.12736
}Semantic roles & 50–950 ramp
primary
#5157C8
secondary
#D3D1A1
accent
#D44CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83