#5255E2#5255E2

#5255E2 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.3% C 0.209 H 275.8°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5255E2
RGBrgb(82, 85, 226)
HSLhsl(239, 71%, 60%)
HSVhsv(239, 64%, 89%)
CMYKcmyk(63.7%, 62.4%, 0%, 11.4%)
CIE-LABlab(43.92, 41.36, -72.16)
CIE-LCHlch(43.92, 83.17, 299.82°)
OKLaboklab(53.34% 0.021 -0.2079)
OKLCHoklch(53.34% 0.209 275.8)
XYZxyz(20.4511, 13.7801, 73.5188)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5255E2 #E2DF52
analogous
#529DE2 #5255E2 #9752E2
triadic
#5255E2 #E25255 #55E252
tetradic
#5255E2 #E2529D #E2DF52 #52E297
square
#5255E2 #E2529D #E2DF52 #52E297
split-complementary
#5255E2 #E29752 #9DE252
monochromatic
#1B1D9F #2327D3 #5255E2 #8689EB #BBBCF4

Accessibility & contrast

On white

5.59
#5255E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5255E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5255E2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5255E2#FFFFFF#000000##FFFFFF
##5255E21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5255e2;
/* rgb */ color: rgb(82, 85, 226);
/* oklch */ color: oklch(53.3% 0.209 275.8);
Tailwind
colors: {
  custom: {
    50: '#9285ec',
    500: '#5255e2',
    950: '#000000',
  },
}
SCSS
$custom: #5255e2;
$custom-light: #9285ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5255e2",
  "rgb": {
    "r": 82,
    "g": 85,
    "b": 226
  },
  "hsl": {
    "h": 238.75,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53339,
    "c": 0.209,
    "h": 275.8
  },
  "luminance": 0.13782
}

Semantic roles & 50–950 ramp

primary
#5255E2
secondary
#E3E2AC
accent
#CF12D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5255E2

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

Preview Lab → · Contrast checker → · Palette generator →

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