#5254E6#5254E6

#5254E6 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.5% C 0.215 H 275.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5254E6
RGBrgb(82, 84, 230)
HSLhsl(239, 75%, 61%)
HSVhsv(239, 64%, 90%)
CMYKcmyk(64.3%, 63.5%, 0%, 9.8%)
CIE-LABlab(44.01, 43.26, -74.27)
CIE-LCHlch(44.01, 85.95, 300.22°)
OKLaboklab(53.51% 0.0215 -0.2141)
OKLCHoklch(53.51% 0.215 275.7)
XYZxyz(20.9282, 13.8459, 76.4172)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254E6 #E6E452
analogous
#529EE6 #5254E6 #9A52E6
triadic
#5254E6 #E65254 #54E652
tetradic
#5254E6 #E6529E #E6E452 #52E69A
square
#5254E6 #E6529E #E6E452 #52E69A
split-complementary
#5254E6 #E69A52 #9EE652
monochromatic
#181AA6 #2022DB #5254E6 #8789EE #BDBEF5

Accessibility & contrast

On white

5.57
#5254E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5254E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254E6
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254E6#FFFFFF#000000##FFFFFF
##5254E61.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#0061E3
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5254e6;
/* rgb */ color: rgb(82, 84, 230);
/* oklch */ color: oklch(53.5% 0.215 275.7);
Tailwind
colors: {
  custom: {
    50: '#9384ef',
    500: '#5254e6',
    950: '#000000',
  },
}
SCSS
$custom: #5254e6;
$custom-light: #9384ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5254e6",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 239.189,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53508,
    "c": 0.21522,
    "h": 275.7
  },
  "luminance": 0.13848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5254E6

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

Preview Lab → · Contrast checker → · Palette generator →

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