#5245E4#5245E4

#5245E4 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.229 H 278.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5245E4
RGBrgb(82, 69, 228)
HSLhsl(245, 75%, 58%)
HSVhsv(245, 70%, 89%)
CMYKcmyk(64%, 69.7%, 0%, 10.6%)
CIE-LABlab(40.65, 51.23, -78.63)
CIE-LCHlch(40.65, 93.85, 303.09°)
OKLaboklab(51.03% 0.0325 -0.227)
OKLCHoklch(51.03% 0.229 278.1)
XYZxyz(19.6069, 11.6499, 74.5992)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245E4 #D7E445
analogous
#4587E4 #5245E4 #A245E4
triadic
#5245E4 #E45245 #45E452
tetradic
#5245E4 #E44587 #D7E445 #45E4A2
square
#5245E4 #E44587 #D7E445 #45E4A2
split-complementary
#5245E4 #E4A245 #87E445
monochromatic
#211698 #2C1ECE #5245E4 #847AEC #B5B0F4

Accessibility & contrast

On white

6.31
#5245E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5245E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245E4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245E4#FFFFFF#000000##FFFFFF
##5245E41.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E9
Deuteranopia (green-blind)
#0059E1
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5245e4;
/* rgb */ color: rgb(82, 69, 228);
/* oklch */ color: oklch(51.0% 0.229 278.1);
Tailwind
colors: {
  custom: {
    50: '#947aee',
    500: '#5245e4',
    950: '#000000',
  },
}
SCSS
$custom: #5245e4;
$custom-light: #947aee;
$custom-dark: #000000;
JSON
{
  "hex": "#5245e4",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 228
  },
  "hsl": {
    "h": 244.906,
    "s": 74.648,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.22927,
    "h": 278.1
  },
  "luminance": 0.11652
}

Semantic roles & 50–950 ramp

primary
#5245E4
secondary
#DDE2A3
accent
#F137E2
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #5245E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5245E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva