#5255E8#5255E8

#5255E8 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.8% C 0.217 H 275.4°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5255E8
RGBrgb(82, 85, 232)
HSLhsl(239, 77%, 62%)
HSVhsv(239, 65%, 91%)
CMYKcmyk(64.7%, 63.4%, 0%, 9%)
CIE-LABlab(44.40, 43.32, -74.77)
CIE-LCHlch(44.40, 86.41, 300.09°)
OKLaboklab(53.84% 0.0206 -0.2156)
OKLCHoklch(53.84% 0.217 275.4)
XYZxyz(21.2889, 14.1152, 77.9309)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255E8 #E8E552
analogous
#52A0E8 #5255E8 #9A52E8
triadic
#5255E8 #E85255 #55E852
tetradic
#5255E8 #E852A0 #E8E552 #52E89A
square
#5255E8 #E852A0 #E8E552 #52E89A
split-complementary
#5255E8 #E89A52 #A0E852
monochromatic
#1619A9 #1E22DF #5255E8 #888AEF #BEBFF6

Accessibility & contrast

On white

5.49
#5255E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5255E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255E8
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255E8#FFFFFF#000000##FFFFFF
##5255E81.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0062E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5255e8;
/* rgb */ color: rgb(82, 85, 232);
/* oklch */ color: oklch(53.8% 0.217 275.4);
Tailwind
colors: {
  custom: {
    50: '#9385f0',
    500: '#5255e8',
    950: '#000000',
  },
}
SCSS
$custom: #5255e8;
$custom-light: #9385f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5255e8",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 232
  },
  "hsl": {
    "h": 238.8,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.21659,
    "h": 275.4
  },
  "luminance": 0.14117
}

Semantic roles & 50–950 ramp

primary
#5255E8
secondary
#E7E6AF
accent
#D50DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5255E8

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

Preview Lab → · Contrast checker → · Palette generator →

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