#5154D3#5154D3
#5154D3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.191 H 276.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5154D3 |
|---|---|
| RGB | rgb(81, 84, 211) |
| HSL | hsl(239, 60%, 57%) |
| HSV | hsv(239, 62%, 83%) |
| CMYK | cmyk(61.6%, 60.2%, 0%, 17.3%) |
| CIE-LAB | lab(42.45, 36.88, -65.99) |
| CIE-LCH | lch(42.45, 75.60, 299.20°) |
| OKLab | oklab(51.88% 0.0214 -0.1899) |
| OKLCH | oklch(51.88% 0.191 276.4) |
| XYZ | xyz(18.3177, 12.7917, 63.1191) |
| Luminance | 0.1279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.63
Iris
#6258C4
ΔE00 3.49
Slate Blue
#6A5ACD
ΔE00 4.31
Dark Periwinkle
#665FD1
ΔE00 4.40
Light Indigo
#6D5ACF
ΔE00 4.77
Electric Blue
#0652FF
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154D3 #D3D051
analogous
#5195D3 #5154D3 #8F51D3
triadic
#5154D3 #D35154 #54D351
tetradic
#5154D3 #D35195 #D3D051 #51D38F
square
#5154D3 #D35195 #D3D051 #51D38F
split-complementary
#5154D3 #D38F51 #95D351
monochromatic
#222587 #2F32B8 #5154D3 #8284DF #B3B4EC
Accessibility & contrast
On white
5.90
#5154D3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#5154D3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154D3
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154D3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154D3 | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5154d3; /* rgb */ color: rgb(81, 84, 211); /* oklch */ color: oklch(51.9% 0.191 276.4);
Tailwind
colors: {
custom: {
50: '#8f84e1',
500: '#5154d3',
950: '#000000',
},
}SCSS
$custom: #5154d3; $custom-light: #8f84e1; $custom-dark: #000000;
JSON
{
"hex": "#5154d3",
"rgb": {
"r": 81,
"g": 84,
"b": 211
},
"hsl": {
"h": 238.615,
"s": 59.633,
"l": 57.255
},
"oklch": {
"l": 0.51878,
"c": 0.19108,
"h": 276.4
},
"luminance": 0.12793
}Semantic roles & 50–950 ramp
primary
#5154D3
secondary
#DAD9A6
accent
#DF45E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83