#5255D2#5255D2

#5255D2 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.188 H 276.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#5255D2
RGBrgb(82, 85, 210)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 61%, 82%)
CMYKcmyk(61%, 59.5%, 0%, 17.6%)
CIE-LABlab(42.68, 36.10, -65.04)
CIE-LCHlch(42.68, 74.39, 299.03°)
OKLaboklab(52.04% 0.0217 -0.187)
OKLCHoklch(52.04% 0.188 276.6)
XYZxyz(18.3573, 12.9426, 62.4911)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255D2 #D2CF52
analogous
#5295D2 #5255D2 #8F52D2
triadic
#5255D2 #D25255 #55D252
tetradic
#5255D2 #D25295 #D2CF52 #52D28F
square
#5255D2 #D25295 #D2CF52 #52D28F
split-complementary
#5255D2 #D28F52 #95D252
monochromatic
#232587 #3033B7 #5255D2 #8385DF #B3B4EB

Accessibility & contrast

On white

5.85
#5255D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5255D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255D2
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255D2#FFFFFF#000000##FFFFFF
##5255D21.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#00748B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5255d2;
/* rgb */ color: rgb(82, 85, 210);
/* oklch */ color: oklch(52.0% 0.188 276.6);
Tailwind
colors: {
  custom: {
    50: '#8f85e1',
    500: '#5255d2',
    950: '#000000',
  },
}
SCSS
$custom: #5255d2;
$custom-light: #8f85e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5255d2",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 210
  },
  "hsl": {
    "h": 238.594,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.1883,
    "h": 276.6
  },
  "luminance": 0.12944
}

Semantic roles & 50–950 ramp

primary
#5255D2
secondary
#DAD9A6
accent
#DE46E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5255D2

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

Preview Lab → · Contrast checker → · Palette generator →

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