#5245D2#5245D2

#5245D2 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.4% C 0.207 H 279.8°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5245D2
RGBrgb(82, 69, 210)
HSLhsl(246, 61%, 55%)
HSVhsv(246, 67%, 82%)
CMYKcmyk(61%, 67.1%, 0%, 17.6%)
CIE-LABlab(39.07, 45.63, -70.92)
CIE-LCHlch(39.07, 84.33, 302.76°)
OKLaboklab(49.41% 0.0352 -0.2044)
OKLCHoklch(49.41% 0.207 279.8)
XYZxyz(17.2370, 10.7019, 62.1176)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245D2 #C5D245
analogous
#457FD2 #5245D2 #9945D2
triadic
#5245D2 #D25245 #45D252
tetradic
#5245D2 #D2457F #C5D245 #45D299
square
#5245D2 #D2457F #C5D245 #45D299
split-complementary
#5245D2 #D29945 #7FD245
monochromatic
#271F7E #372AAF #5245D2 #8076DE #AEA8EA

Accessibility & contrast

On white

6.69
#5245D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5245D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245D2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245D2#FFFFFF#000000##FFFFFF
##5245D21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5245d2;
/* rgb */ color: rgb(82, 69, 210);
/* oklch */ color: oklch(49.4% 0.207 279.8);
Tailwind
colors: {
  custom: {
    50: '#907ae1',
    500: '#5245d2',
    950: '#000000',
  },
}
SCSS
$custom: #5245d2;
$custom-light: #907ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5245d2",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 245.532,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.20738,
    "h": 279.8
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

primary
#5245D2
secondary
#D2D79C
accent
#E444D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5245D2

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

Preview Lab → · Contrast checker → · Palette generator →

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