#5254EC#5254EC

#5254EC is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.0% C 0.223 H 275.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5254EC
RGBrgb(82, 84, 236)
HSLhsl(239, 80%, 62%)
HSVhsv(239, 65%, 93%)
CMYKcmyk(65.3%, 64.4%, 0%, 7.5%)
CIE-LABlab(44.50, 45.21, -76.85)
CIE-LCHlch(44.50, 89.16, 300.46°)
OKLaboklab(54.02% 0.021 -0.2217)
OKLCHoklch(54.02% 0.223 275.4)
XYZxyz(21.7853, 14.1887, 80.9312)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254EC #ECEA52
analogous
#52A1EC #5254EC #9D52EC
triadic
#5254EC #EC5254 #54EC52
tetradic
#5254EC #EC52A1 #ECEA52 #52EC9D
square
#5254EC #EC52A1 #ECEA52 #52EC9D
split-complementary
#5254EC #EC9D52 #A1EC52
monochromatic
#1315B0 #1B1DE6 #5254EC #898BF2 #C0C1F8

Accessibility & contrast

On white

5.47
#5254EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5254EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254EC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254EC#FFFFFF#000000##FFFFFF
##5254EC1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5254ec;
/* rgb */ color: rgb(82, 84, 236);
/* oklch */ color: oklch(54.0% 0.223 275.4);
Tailwind
colors: {
  custom: {
    50: '#9485f3',
    500: '#5254ec',
    950: '#000000',
  },
}
SCSS
$custom: #5254ec;
$custom-light: #9485f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5254ec",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 239.221,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54018,
    "c": 0.22273,
    "h": 275.4
  },
  "luminance": 0.14191
}

Semantic roles & 50–950 ramp

primary
#5254EC
secondary
#E9E8B1
accent
#DA09DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5254EC

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

Preview Lab → · Contrast checker → · Palette generator →

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