#5255B1#5255B1
#5255B1 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.143 H 278.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5255B1 |
|---|---|
| RGB | rgb(82, 85, 177) |
| HSL | hsl(238, 38%, 51%) |
| HSV | hsv(238, 54%, 69%) |
| CMYK | cmyk(53.7%, 52%, 0%, 30.6%) |
| CIE-LAB | lab(40.35, 25.26, -49.61) |
| CIE-LCH | lch(40.35, 55.67, 296.98°) |
| OKLab | oklab(49.57% 0.0209 -0.1417) |
| OKLCH | oklch(49.57% 0.143 278.4) |
| XYZ | xyz(14.6615, 11.4642, 43.0267) |
| Luminance | 0.1147 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.05
Ocean Blue
#4F42B5
ΔE00 5.94
Warm Blue
#4B57DB
ΔE00 5.96
Slate Blue
#6A5ACD
ΔE00 6.02
Dark Periwinkle
#665FD1
ΔE00 6.35
Twilight
#4E518B
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5255B1 #B1AE52
analogous
#5284B1 #5255B1 #7E52B1
triadic
#5255B1 #B15255 #55B152
tetradic
#5255B1 #B15284 #B1AE52 #52B17E
square
#5255B1 #B15284 #B1AE52 #52B17E
split-complementary
#5255B1 #B17E52 #84B152
monochromatic
#2A2C5E #3D4088 #5255B1 #7C7EC4 #A6A8D7
Accessibility & contrast
On white
6.38
#5255B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#5255B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5255B1
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5255B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5255B1 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#185BAF
Tritanopia (blue-blind)
#276A7B
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5255b1; /* rgb */ color: rgb(82, 85, 177); /* oklch */ color: oklch(49.6% 0.143 278.4);
Tailwind
colors: {
custom: {
50: '#8a84c9',
500: '#5255b1',
950: '#000000',
},
}SCSS
$custom: #5255b1; $custom-light: #8a84c9; $custom-dark: #000000;
JSON
{
"hex": "#5255b1",
"rgb": {
"r": 82,
"g": 85,
"b": 177
},
"hsl": {
"h": 238.105,
"s": 37.849,
"l": 50.784
},
"oklch": {
"l": 0.49573,
"c": 0.14319,
"h": 278.4
},
"luminance": 0.11465
}Semantic roles & 50–950 ramp
primary
#5255B1
secondary
#C4C39A
accent
#CA5ACE
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82