#5255D3#5255D3

#5255D3 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.1% C 0.190 H 276.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5255D3
RGBrgb(82, 85, 211)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 61%, 83%)
CMYKcmyk(61.1%, 59.7%, 0%, 17.3%)
CIE-LABlab(42.75, 36.43, -65.49)
CIE-LCHlch(42.75, 74.94, 299.09°)
OKLaboklab(52.12% 0.0216 -0.1884)
OKLCHoklch(52.12% 0.19 276.6)
XYZxyz(18.4822, 12.9925, 63.1492)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255D3 #D3D052
analogous
#5295D3 #5255D3 #9052D3
triadic
#5255D3 #D35255 #55D352
tetradic
#5255D3 #D35295 #D3D052 #52D390
square
#5255D3 #D35295 #D3D052 #52D390
split-complementary
#5255D3 #D39052 #95D352
monochromatic
#232588 #2F32B9 #5255D3 #8385DF #B4B5EC

Accessibility & contrast

On white

5.84
#5255D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#5255D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255D3
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255D3#FFFFFF#000000##FFFFFF
##5255D31.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#005FD0
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5255d3;
/* rgb */ color: rgb(82, 85, 211);
/* oklch */ color: oklch(52.1% 0.190 276.6);
Tailwind
colors: {
  custom: {
    50: '#8f85e1',
    500: '#5255d3',
    950: '#000000',
  },
}
SCSS
$custom: #5255d3;
$custom-light: #8f85e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5255d3",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 211
  },
  "hsl": {
    "h": 238.605,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.5212,
    "c": 0.18962,
    "h": 276.6
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5255D3

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

Preview Lab → · Contrast checker → · Palette generator →

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