#5257BA#5257BA
#5257BA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.153 H 277.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5257BA |
|---|---|
| RGB | rgb(82, 87, 186) |
| HSL | hsl(237, 43%, 53%) |
| HSV | hsv(237, 56%, 73%) |
| CMYK | cmyk(55.9%, 53.2%, 0%, 27.1%) |
| CIE-LAB | lab(41.46, 26.95, -53.10) |
| CIE-LCH | lch(41.46, 59.55, 296.90°) |
| OKLab | oklab(50.6% 0.0193 -0.1519) |
| OKLCH | oklch(50.6% 0.153 277.2) |
| XYZ | xyz(15.7480, 12.1543, 47.9610) |
| Luminance | 0.1216 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.27
Warm Blue
#4B57DB
ΔE00 4.57
Slate Blue
#6A5ACD
ΔE00 5.14
Dark Periwinkle
#665FD1
ΔE00 5.20
Light Indigo
#6D5ACF
ΔE00 5.76
Ocean Blue
#4F42B5
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5257BA #BAB552
analogous
#528BBA #5257BA #8152BA
triadic
#5257BA #BA5257 #57BA52
tetradic
#5257BA #BA528B #BAB552 #52BA81
square
#5257BA #BA528B #BAB552 #52BA81
split-complementary
#5257BA #BA8152 #8BBA52
monochromatic
#2A2D68 #3B3F94 #5257BA #7E81CB #AAACDD
Accessibility & contrast
On white
6.12
#5257BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#5257BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5257BA
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5257BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5257BA | 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)
#1D66BD
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#1B6E80
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5257ba; /* rgb */ color: rgb(82, 87, 186); /* oklch */ color: oklch(50.6% 0.153 277.2);
Tailwind
colors: {
custom: {
50: '#8b86cf',
500: '#5257ba',
950: '#000000',
},
}SCSS
$custom: #5257ba; $custom-light: #8b86cf; $custom-dark: #000000;
JSON
{
"hex": "#5257ba",
"rgb": {
"r": 82,
"g": 87,
"b": 186
},
"hsl": {
"h": 237.115,
"s": 42.975,
"l": 52.549
},
"oklch": {
"l": 0.50595,
"c": 0.15314,
"h": 277.2
},
"luminance": 0.12155
}Semantic roles & 50–950 ramp
primary
#5257BA
secondary
#CAC89D
accent
#CD55D3
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82