#5255D8#5255D8

#5255D8 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.5% C 0.196 H 276.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5255D8
RGBrgb(82, 85, 216)
HSLhsl(239, 63%, 58%)
HSVhsv(239, 62%, 85%)
CMYKcmyk(62%, 60.6%, 0%, 15.3%)
CIE-LABlab(43.13, 38.08, -67.74)
CIE-LCHlch(43.13, 77.70, 299.34°)
OKLaboklab(52.52% 0.0215 -0.195)
OKLCHoklch(52.52% 0.196 276.3)
XYZxyz(19.1188, 13.2472, 66.5019)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255D8 #D8D552
analogous
#5298D8 #5255D8 #9252D8
triadic
#5255D8 #D85255 #55D852
tetradic
#5255D8 #D85298 #D8D552 #52D892
square
#5255D8 #D85298 #D8D552 #52D892
split-complementary
#5255D8 #D89252 #98D852
monochromatic
#20238F #2C2FC1 #5255D8 #8486E3 #B6B7EF

Accessibility & contrast

On white

5.75
#5255D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5255D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255D8
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255D8#FFFFFF#000000##FFFFFF
##5255D81.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0060D5
Tritanopia (blue-blind)
#00758E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5255d8;
/* rgb */ color: rgb(82, 85, 216);
/* oklch */ color: oklch(52.5% 0.196 276.3);
Tailwind
colors: {
  custom: {
    50: '#9085e5',
    500: '#5255d8',
    950: '#000000',
  },
}
SCSS
$custom: #5255d8;
$custom-light: #9085e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5255d8",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 216
  },
  "hsl": {
    "h": 238.657,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.19615,
    "h": 276.3
  },
  "luminance": 0.13249
}

Semantic roles & 50–950 ramp

primary
#5255D8
secondary
#DDDCA8
accent
#E342E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5255D8

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

Preview Lab → · Contrast checker → · Palette generator →

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