#5255BF#5255BF
#5255BF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.163 H 277.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #5255BF |
|---|---|
| RGB | rgb(82, 85, 191) |
| HSL | hsl(238, 46%, 54%) |
| HSV | hsv(238, 57%, 75%) |
| CMYK | cmyk(57.1%, 55.5%, 0%, 25.1%) |
| CIE-LAB | lab(41.30, 29.85, -56.29) |
| CIE-LCH | lch(41.30, 63.71, 297.93°) |
| OKLab | oklab(50.58% 0.0216 -0.1613) |
| OKLCH | oklch(50.58% 0.163 277.6) |
| XYZ | xyz(16.1291, 12.0513, 50.7563) |
| Luminance | 0.1205 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.94
Warm Blue
#4B57DB
ΔE00 3.92
Slate Blue
#6A5ACD
ΔE00 4.76
Dark Periwinkle
#665FD1
ΔE00 5.01
Light Indigo
#6D5ACF
ΔE00 5.36
Ocean Blue
#4F42B5
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5255BF #BFBC52
analogous
#528BBF #5255BF #8552BF
triadic
#5255BF #BF5255 #55BF52
tetradic
#5255BF #BF528B #BFBC52 #52BF85
square
#5255BF #BF528B #BFBC52 #52BF85
split-complementary
#5255BF #BF8552 #8BBF52
monochromatic
#292B6E #393C9B #5255BF #7F81D0 #ABADE0
Accessibility & contrast
On white
6.16
#5255BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#5255BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5255BF
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5255BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5255BF | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0666C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#116E82
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5255bf; /* rgb */ color: rgb(82, 85, 191); /* oklch */ color: oklch(50.6% 0.163 277.6);
Tailwind
colors: {
custom: {
50: '#8c85d3',
500: '#5255bf',
950: '#000000',
},
}SCSS
$custom: #5255bf; $custom-light: #8c85d3; $custom-dark: #000000;
JSON
{
"hex": "#5255bf",
"rgb": {
"r": 82,
"g": 85,
"b": 191
},
"hsl": {
"h": 238.349,
"s": 45.992,
"l": 53.529
},
"oklch": {
"l": 0.50582,
"c": 0.16274,
"h": 277.6
},
"luminance": 0.12052
}Semantic roles & 50–950 ramp
primary
#5255BF
secondary
#CECC9F
accent
#D252D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83