#5256CD#5256CD
#5256CD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.180 H 276.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #5256CD |
|---|---|
| RGB | rgb(82, 86, 205) |
| HSL | hsl(238, 55%, 56%) |
| HSV | hsv(238, 60%, 80%) |
| CMYK | cmyk(60%, 58%, 0%, 19.6%) |
| CIE-LAB | lab(42.55, 33.84, -62.38) |
| CIE-LCH | lch(42.55, 70.97, 298.48°) |
| OKLab | oklab(51.83% 0.0208 -0.1792) |
| OKLCH | oklch(51.83% 0.18 276.6) |
| XYZ | xyz(17.8233, 12.8558, 59.2880) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.01
Iris
#6258C4
ΔE00 2.97
Dark Periwinkle
#665FD1
ΔE00 4.06
Slate Blue
#6A5ACD
ΔE00 4.11
Light Indigo
#6D5ACF
ΔE00 4.64
Azul
#1D5DEC
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5256CD #CDC952
analogous
#5294CD #5256CD #8C52CD
triadic
#5256CD #CD5256 #56CD52
tetradic
#5256CD #CD5294 #CDC952 #52CD8C
square
#5256CD #CD5294 #CDC952 #52CD8C
split-complementary
#5256CD #CD8C52 #94CD52
monochromatic
#252880 #3337AF #5256CD #8184DB #B1B3E8
Accessibility & contrast
On white
5.88
#5256CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#5256CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5256CD
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5256CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5256CD | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5256cd; /* rgb */ color: rgb(82, 86, 205); /* oklch */ color: oklch(51.8% 0.180 276.6);
Tailwind
colors: {
custom: {
50: '#8e85dd',
500: '#5256cd',
950: '#000000',
},
}SCSS
$custom: #5256cd; $custom-light: #8e85dd; $custom-dark: #000000;
JSON
{
"hex": "#5256cd",
"rgb": {
"r": 82,
"g": 86,
"b": 205
},
"hsl": {
"h": 238.049,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.51827,
"c": 0.18041,
"h": 276.6
},
"luminance": 0.12857
}Semantic roles & 50–950 ramp
primary
#5256CD
secondary
#D7D5A4
accent
#DA49DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83