#5255BD#5255BD

#5255BD is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.4% C 0.160 H 277.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5255BD
RGBrgb(82, 85, 189)
HSLhsl(238, 45%, 53%)
HSVhsv(238, 57%, 74%)
CMYKcmyk(56.6%, 55%, 0%, 25.9%)
CIE-LABlab(41.16, 29.19, -55.34)
CIE-LCHlch(41.16, 62.57, 297.81°)
OKLaboklab(50.43% 0.0216 -0.1585)
OKLCHoklch(50.43% 0.16 277.7)
XYZxyz(15.9106, 11.9639, 49.6051)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255BD #BDBA52
analogous
#528ABD #5255BD #8452BD
triadic
#5255BD #BD5255 #55BD52
tetradic
#5255BD #BD528A #BDBA52 #52BD84
square
#5255BD #BD528A #BDBA52 #52BD84
split-complementary
#5255BD #BD8452 #8ABD52
monochromatic
#292B6C #3A3D98 #5255BD #7E81CE #ABACDF

Accessibility & contrast

On white

6.19
#5255BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5255BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255BD
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255BD#FFFFFF#000000##FFFFFF
##5255BD1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E66C1
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#166D81
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5255bd;
/* rgb */ color: rgb(82, 85, 189);
/* oklch */ color: oklch(50.4% 0.160 277.7);
Tailwind
colors: {
  custom: {
    50: '#8c85d2',
    500: '#5255bd',
    950: '#000000',
  },
}
SCSS
$custom: #5255bd;
$custom-light: #8c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5255bd",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 189
  },
  "hsl": {
    "h": 238.318,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50434,
    "c": 0.15999,
    "h": 277.7
  },
  "luminance": 0.11965
}

Semantic roles & 50–950 ramp

primary
#5255BD
secondary
#CCCB9E
accent
#D153D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5255BD

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5255BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva