#5245D3#5245D3

#5245D3 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.209 H 279.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5245D3
RGBrgb(82, 69, 211)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.1%, 67.3%, 0%, 17.3%)
CIE-LABlab(39.16, 45.94, -71.36)
CIE-LCHlch(39.16, 84.87, 302.77°)
OKLaboklab(49.5% 0.035 -0.2057)
OKLCHoklch(49.5% 0.209 279.7)
XYZxyz(17.3619, 10.7519, 62.7758)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245D3 #C6D345
analogous
#457FD3 #5245D3 #9945D3
triadic
#5245D3 #D35245 #45D352
tetradic
#5245D3 #D3457F #C6D345 #45D399
square
#5245D3 #D3457F #C6D345 #45D399
split-complementary
#5245D3 #D39945 #7FD345
monochromatic
#271E7F #362AB1 #5245D3 #8076DF #AEA8EA

Accessibility & contrast

On white

6.67
#5245D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5245D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245D3
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245D3#FFFFFF#000000##FFFFFF
##5245D31.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0057D0
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5245d3;
/* rgb */ color: rgb(82, 69, 211);
/* oklch */ color: oklch(49.5% 0.209 279.7);
Tailwind
colors: {
  custom: {
    50: '#907ae2',
    500: '#5245d3',
    950: '#000000',
  },
}
SCSS
$custom: #5245d3;
$custom-light: #907ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5245d3",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 245.493,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49499,
    "c": 0.20862,
    "h": 279.7
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#5245D3
secondary
#D2D89C
accent
#E543D6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5245D3

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

Preview Lab → · Contrast checker → · Palette generator →

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