#5255E5#5255E5

#5255E5 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.6% C 0.213 H 275.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5255E5
RGBrgb(82, 85, 229)
HSLhsl(239, 74%, 61%)
HSVhsv(239, 64%, 90%)
CMYKcmyk(64.2%, 62.9%, 0%, 10.2%)
CIE-LABlab(44.16, 42.34, -73.47)
CIE-LCHlch(44.16, 84.79, 299.95°)
OKLaboklab(53.59% 0.0208 -0.2118)
OKLCHoklch(53.59% 0.213 275.6)
XYZxyz(20.8664, 13.9462, 75.7058)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255E5 #E5E252
analogous
#529EE5 #5255E5 #9952E5
triadic
#5255E5 #E55255 #55E552
tetradic
#5255E5 #E5529E #E5E252 #52E599
square
#5255E5 #E5529E #E5E252 #52E599
split-complementary
#5255E5 #E59952 #9EE552
monochromatic
#191BA4 #2124D9 #5255E5 #8789ED #BCBEF5

Accessibility & contrast

On white

5.54
#5255E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5255E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255E5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255E5#FFFFFF#000000##FFFFFF
##5255E51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEA
Deuteranopia (green-blind)
#0062E2
Tritanopia (blue-blind)
#007A95
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5255e5;
/* rgb */ color: rgb(82, 85, 229);
/* oklch */ color: oklch(53.6% 0.213 275.6);
Tailwind
colors: {
  custom: {
    50: '#9385ee',
    500: '#5255e5',
    950: '#000000',
  },
}
SCSS
$custom: #5255e5;
$custom-light: #9385ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5255e5",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 229
  },
  "hsl": {
    "h": 238.776,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53589,
    "c": 0.21282,
    "h": 275.6
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#5255E5
secondary
#E5E4AE
accent
#D210D6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5255E5

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

Preview Lab → · Contrast checker → · Palette generator →

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