#5245E2#5245E2

#5245E2 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.8% C 0.227 H 278.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5245E2
RGBrgb(82, 69, 226)
HSLhsl(245, 73%, 58%)
HSVhsv(245, 69%, 89%)
CMYKcmyk(63.7%, 69.5%, 0%, 11.4%)
CIE-LABlab(40.47, 50.62, -77.79)
CIE-LCHlch(40.47, 92.81, 303.05°)
OKLaboklab(50.85% 0.0328 -0.2245)
OKLCHoklch(50.85% 0.227 278.3)
XYZxyz(19.3308, 11.5395, 73.1454)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245E2 #D5E245
analogous
#4587E2 #5245E2 #A045E2
triadic
#5245E2 #E25245 #45E252
tetradic
#5245E2 #E24587 #D5E245 #45E2A0
square
#5245E2 #E24587 #D5E245 #45E2A0
split-complementary
#5245E2 #E2A045 #87E245
monochromatic
#221795 #2E20CA #5245E2 #837AEA #B4AFF3

Accessibility & contrast

On white

6.35
#5245E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5245E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245E2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245E2#FFFFFF#000000##FFFFFF
##5245E21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5245e2;
/* rgb */ color: rgb(82, 69, 226);
/* oklch */ color: oklch(50.8% 0.227 278.3);
Tailwind
colors: {
  custom: {
    50: '#937aec',
    500: '#5245e2',
    950: '#000000',
  },
}
SCSS
$custom: #5245e2;
$custom-light: #937aec;
$custom-dark: #000000;
JSON
{
  "hex": "#5245e2",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 244.968,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50846,
    "c": 0.22688,
    "h": 278.3
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#5245E2
secondary
#DCE1A2
accent
#F038E1
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5245E2

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

Preview Lab → · Contrast checker → · Palette generator →

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