#5256CB#5256CB
#5256CB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.178 H 276.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #5256CB |
|---|---|
| RGB | rgb(82, 86, 203) |
| HSL | hsl(238, 54%, 56%) |
| HSV | hsv(238, 60%, 80%) |
| CMYK | cmyk(59.6%, 57.6%, 0%, 20.4%) |
| CIE-LAB | lab(42.40, 33.18, -61.46) |
| CIE-LCH | lch(42.40, 69.84, 298.36°) |
| OKLab | oklab(51.67% 0.0208 -0.1765) |
| OKLCH | oklch(51.67% 0.178 276.7) |
| XYZ | xyz(17.5835, 12.7599, 58.0247) |
| Luminance | 0.1276 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.26
Iris
#6258C4
ΔE00 2.89
Dark Periwinkle
#665FD1
ΔE00 4.13
Slate Blue
#6A5ACD
ΔE00 4.15
Light Indigo
#6D5ACF
ΔE00 4.70
Azul
#1D5DEC
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5256CB #CBC752
analogous
#5292CB #5256CB #8B52CB
triadic
#5256CB #CB5256 #56CB52
tetradic
#5256CB #CB5292 #CBC752 #52CB8B
square
#5256CB #CB5292 #CBC752 #52CB8B
split-complementary
#5256CB #CB8B52 #92CB52
monochromatic
#26287D #3438AC #5256CB #8184D9 #B0B2E7
Accessibility & contrast
On white
5.91
#5256CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.55
#5256CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5256CB
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5256CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5256CB | 1.00 | 5.91 | 3.55 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5256cb; /* rgb */ color: rgb(82, 86, 203); /* oklch */ color: oklch(51.7% 0.178 276.7);
Tailwind
colors: {
custom: {
50: '#8e85dc',
500: '#5256cb',
950: '#000000',
},
}SCSS
$custom: #5256cb; $custom-light: #8e85dc; $custom-dark: #000000;
JSON
{
"hex": "#5256cb",
"rgb": {
"r": 82,
"g": 86,
"b": 203
},
"hsl": {
"h": 238.017,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.51672,
"c": 0.17774,
"h": 276.7
},
"luminance": 0.12761
}Semantic roles & 50–950 ramp
primary
#5256CB
secondary
#D5D4A3
accent
#D84BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83