#5256CC#5256CC
#5256CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.179 H 276.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5256CC |
|---|---|
| RGB | rgb(82, 86, 204) |
| HSL | hsl(238, 54%, 56%) |
| HSV | hsv(238, 60%, 80%) |
| CMYK | cmyk(59.8%, 57.8%, 0%, 20%) |
| CIE-LAB | lab(42.47, 33.51, -61.92) |
| CIE-LCH | lch(42.47, 70.41, 298.42°) |
| OKLab | oklab(51.75% 0.0208 -0.1779) |
| OKLCH | oklch(51.75% 0.179 276.7) |
| XYZ | xyz(17.7030, 12.8077, 58.6543) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.13
Iris
#6258C4
ΔE00 2.93
Dark Periwinkle
#665FD1
ΔE00 4.09
Slate Blue
#6A5ACD
ΔE00 4.13
Light Indigo
#6D5ACF
ΔE00 4.67
Azul
#1D5DEC
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5256CC #CCC852
analogous
#5293CC #5256CC #8B52CC
triadic
#5256CC #CC5256 #56CC52
tetradic
#5256CC #CC5293 #CCC852 #52CC8B
square
#5256CC #CC5293 #CCC852 #52CC8B
split-complementary
#5256CC #CC8B52 #93CC52
monochromatic
#25287E #3337AE #5256CC #8184DA #B1B2E8
Accessibility & contrast
On white
5.90
#5256CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#5256CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5256CC
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5256CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5256CC | 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)
#006AD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5256cc; /* rgb */ color: rgb(82, 86, 204); /* oklch */ color: oklch(51.7% 0.179 276.7);
Tailwind
colors: {
custom: {
50: '#8e85dc',
500: '#5256cc',
950: '#000000',
},
}SCSS
$custom: #5256cc; $custom-light: #8e85dc; $custom-dark: #000000;
JSON
{
"hex": "#5256cc",
"rgb": {
"r": 82,
"g": 86,
"b": 204
},
"hsl": {
"h": 238.033,
"s": 54.464,
"l": 56.078
},
"oklch": {
"l": 0.51749,
"c": 0.17908,
"h": 276.7
},
"luminance": 0.12809
}Semantic roles & 50–950 ramp
primary
#5256CC
secondary
#D6D4A4
accent
#D94ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83