#5245EA#5245EA

#5245EA is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.236 H 277.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5245EA
RGBrgb(82, 69, 234)
HSLhsl(245, 80%, 59%)
HSVhsv(245, 71%, 92%)
CMYKcmyk(65%, 70.5%, 0%, 8.2%)
CIE-LABlab(41.20, 53.08, -81.14)
CIE-LCHlch(41.20, 96.97, 303.19°)
OKLaboklab(51.58% 0.0315 -0.2343)
OKLCHoklch(51.58% 0.236 277.6)
XYZxyz(20.4543, 11.9889, 79.0621)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245EA #DDEA45
analogous
#458BEA #5245EA #A445EA
triadic
#5245EA #EA5245 #45EA52
tetradic
#5245EA #EA458B #DDEA45 #45EAA4
square
#5245EA #EA458B #DDEA45 #45EAA4
split-complementary
#5245EA #EAA445 #8BEA45
monochromatic
#1E12A2 #2819D9 #5245EA #857CF0 #B8B3F6

Accessibility & contrast

On white

6.18
#5245EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5245EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245EA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245EA#FFFFFF#000000##FFFFFF
##5245EA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005AE7
Tritanopia (blue-blind)
#007393
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5245ea;
/* rgb */ color: rgb(82, 69, 234);
/* oklch */ color: oklch(51.6% 0.236 277.6);
Tailwind
colors: {
  custom: {
    50: '#957bf2',
    500: '#5245ea',
    950: '#000000',
  },
}
SCSS
$custom: #5245ea;
$custom-light: #957bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5245ea",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 234
  },
  "hsl": {
    "h": 244.727,
    "s": 79.71,
    "l": 59.412
  },
  "oklch": {
    "l": 0.51583,
    "c": 0.2364,
    "h": 277.6
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#5245EA
secondary
#E0E6A5
accent
#F632E7
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5245EA

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

Preview Lab → · Contrast checker → · Palette generator →

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