#5255BB#5255BB
#5255BB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.157 H 277.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #5255BB |
|---|---|
| RGB | rgb(82, 85, 187) |
| HSL | hsl(238, 44%, 53%) |
| HSV | hsv(238, 56%, 73%) |
| CMYK | cmyk(56.1%, 54.5%, 0%, 26.7%) |
| CIE-LAB | lab(41.02, 28.53, -54.40) |
| CIE-LCH | lch(41.02, 61.43, 297.68°) |
| OKLab | oklab(50.29% 0.0215 -0.1557) |
| OKLCH | oklch(50.29% 0.157 277.9) |
| XYZ | xyz(15.6950, 11.8776, 48.4696) |
| Luminance | 0.1188 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.15
Warm Blue
#4B57DB
ΔE00 4.48
Slate Blue
#6A5ACD
ΔE00 5.06
Dark Periwinkle
#665FD1
ΔE00 5.34
Light Indigo
#6D5ACF
ΔE00 5.67
Ocean Blue
#4F42B5
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5255BB #BBB852
analogous
#5289BB #5255BB #8452BB
triadic
#5255BB #BB5255 #55BB52
tetradic
#5255BB #BB5289 #BBB852 #52BB84
square
#5255BB #BB5289 #BBB852 #52BB84
split-complementary
#5255BB #BB8452 #89BB52
monochromatic
#292B69 #3B3D95 #5255BB #7E80CC #AAABDE
Accessibility & contrast
On white
6.22
#5255BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#5255BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5255BB
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5255BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5255BB | 1.00 | 6.22 | 3.38 | 6.22 |
| #FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1365BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#1A6C80
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5255bb; /* rgb */ color: rgb(82, 85, 187); /* oklch */ color: oklch(50.3% 0.157 277.9);
Tailwind
colors: {
custom: {
50: '#8b85d0',
500: '#5255bb',
950: '#000000',
},
}SCSS
$custom: #5255bb; $custom-light: #8b85d0; $custom-dark: #000000;
JSON
{
"hex": "#5255bb",
"rgb": {
"r": 82,
"g": 85,
"b": 187
},
"hsl": {
"h": 238.286,
"s": 43.568,
"l": 52.745
},
"oklch": {
"l": 0.50288,
"c": 0.15723,
"h": 277.9
},
"luminance": 0.11879
}Semantic roles & 50–950 ramp
primary
#5255BB
secondary
#CBCA9E
accent
#D054D3
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82