#5255DF#5255DF

#5255DF is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.1% C 0.205 H 275.9°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5255DF
RGBrgb(82, 85, 223)
HSLhsl(239, 69%, 60%)
HSVhsv(239, 63%, 87%)
CMYKcmyk(63.2%, 61.9%, 0%, 12.5%)
CIE-LABlab(43.68, 40.37, -70.84)
CIE-LCHlch(43.68, 81.54, 299.68°)
OKLaboklab(53.09% 0.0211 -0.2041)
OKLCHoklch(53.09% 0.205 275.9)
XYZxyz(20.0431, 13.6169, 71.3698)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255DF #DFDC52
analogous
#529CDF #5255DF #9552DF
triadic
#5255DF #DF5255 #55DF52
tetradic
#5255DF #DF529C #DFDC52 #52DF95
square
#5255DF #DF529C #DFDC52 #52DF95
split-complementary
#5255DF #DF9552 #9CDF52
monochromatic
#1D1F9A #262ACE #5255DF #8688E9 #B9BBF2

Accessibility & contrast

On white

5.64
#5255DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5255DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255DF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255DF#FFFFFF#000000##FFFFFF
##5255DF1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0061DC
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5255df;
/* rgb */ color: rgb(82, 85, 223);
/* oklch */ color: oklch(53.1% 0.205 275.9);
Tailwind
colors: {
  custom: {
    50: '#9185ea',
    500: '#5255df',
    950: '#000000',
  },
}
SCSS
$custom: #5255df;
$custom-light: #9185ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5255df",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 223
  },
  "hsl": {
    "h": 238.723,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53091,
    "c": 0.20518,
    "h": 275.9
  },
  "luminance": 0.13619
}

Semantic roles & 50–950 ramp

primary
#5255DF
secondary
#E2E0AB
accent
#E83CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5255DF

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

Preview Lab → · Contrast checker → · Palette generator →

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