#5245CD#5245CD

#5245CD is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.0% C 0.201 H 280.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5245CD
RGBrgb(82, 69, 205)
HSLhsl(246, 58%, 54%)
HSVhsv(246, 66%, 80%)
CMYKcmyk(60%, 66.3%, 0%, 19.6%)
CIE-LABlab(38.65, 44.06, -68.73)
CIE-LCHlch(38.65, 81.64, 302.66°)
OKLaboklab(48.97% 0.0358 -0.1979)
OKLCHoklch(48.97% 0.201 280.3)
XYZxyz(16.6238, 10.4567, 58.8881)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245CD #C0CD45
analogous
#457CCD #5245CD #9645CD
triadic
#5245CD #CD5245 #45CD52
tetradic
#5245CD #CD457C #C0CD45 #45CD96
square
#5245CD #CD457C #C0CD45 #45CD96
split-complementary
#5245CD #CD9645 #7CCD45
monochromatic
#282077 #392DA8 #5245CD #7F75DA #ACA5E7

Accessibility & contrast

On white

6.79
#5245CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5245CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245CD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245CD#FFFFFF#000000##FFFFFF
##5245CD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5245cd;
/* rgb */ color: rgb(82, 69, 205);
/* oklch */ color: oklch(49.0% 0.201 280.3);
Tailwind
colors: {
  custom: {
    50: '#8f7add',
    500: '#5245cd',
    950: '#000000',
  },
}
SCSS
$custom: #5245cd;
$custom-light: #8f7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5245cd",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 245.735,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48974,
    "c": 0.20115,
    "h": 280.3
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#5245CD
secondary
#CED49A
accent
#E147D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5245CD

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

Preview Lab → · Contrast checker → · Palette generator →

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