#5245D8#5245D8

#5245D8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 49.9% C 0.215 H 279.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5245D8
RGBrgb(82, 69, 216)
HSLhsl(245, 65%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62%, 68.1%, 0%, 15.3%)
CIE-LABlab(39.59, 47.51, -73.52)
CIE-LCHlch(39.59, 87.54, 302.87°)
OKLaboklab(49.94% 0.0343 -0.212)
OKLCHoklch(49.94% 0.215 279.2)
XYZxyz(17.9985, 11.0066, 66.1284)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245D8 #CBD845
analogous
#4581D8 #5245D8 #9B45D8
triadic
#5245D8 #D85245 #45D852
tetradic
#5245D8 #D84581 #CBD845 #45D89B
square
#5245D8 #D84581 #CBD845 #45D89B
split-complementary
#5245D8 #D89B45 #81D845
monochromatic
#261C86 #3427B9 #5245D8 #8178E3 #B0AAED

Accessibility & contrast

On white

6.56
#5245D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5245D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245D8
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245D8#FFFFFF#000000##FFFFFF
##5245D81.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5245d8;
/* rgb */ color: rgb(82, 69, 216);
/* oklch */ color: oklch(49.9% 0.215 279.2);
Tailwind
colors: {
  custom: {
    50: '#917ae5',
    500: '#5245d8',
    950: '#000000',
  },
}
SCSS
$custom: #5245d8;
$custom-light: #917ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#5245d8",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 245.306,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49943,
    "c": 0.21477,
    "h": 279.2
  },
  "luminance": 0.11008
}

Semantic roles & 50–950 ramp

primary
#5245D8
secondary
#D5DB9E
accent
#E840D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5245D8

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

Preview Lab → · Contrast checker → · Palette generator →

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