#5255E6#5255E6

#5255E6 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.7% C 0.214 H 275.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5255E6
RGBrgb(82, 85, 230)
HSLhsl(239, 75%, 61%)
HSVhsv(239, 64%, 90%)
CMYKcmyk(64.3%, 63%, 0%, 9.8%)
CIE-LABlab(44.24, 42.66, -73.90)
CIE-LCHlch(44.24, 85.33, 300.00°)
OKLaboklab(53.67% 0.0207 -0.2131)
OKLCHoklch(53.67% 0.214 275.5)
XYZxyz(21.0064, 14.0022, 76.4433)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255E6 #E6E352
analogous
#529FE6 #5255E6 #9952E6
triadic
#5255E6 #E65255 #55E652
tetradic
#5255E6 #E6529F #E6E352 #52E699
square
#5255E6 #E6529F #E6E352 #52E699
split-complementary
#5255E6 #E69952 #9FE652
monochromatic
#181BA6 #2023DB #5255E6 #878AEE #BDBEF5

Accessibility & contrast

On white

5.53
#5255E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5255E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255E6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255E6#FFFFFF#000000##FFFFFF
##5255E61.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#0062E3
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5255e6;
/* rgb */ color: rgb(82, 85, 230);
/* oklch */ color: oklch(53.7% 0.214 275.5);
Tailwind
colors: {
  custom: {
    50: '#9385ef',
    500: '#5255e6',
    950: '#000000',
  },
}
SCSS
$custom: #5255e6;
$custom-light: #9385ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5255e6",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 230
  },
  "hsl": {
    "h": 238.784,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53673,
    "c": 0.21407,
    "h": 275.5
  },
  "luminance": 0.14004
}

Semantic roles & 50–950 ramp

primary
#5255E6
secondary
#E6E5AE
accent
#D30FD7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5255E6

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

Preview Lab → · Contrast checker → · Palette generator →

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