#5245BD#5245BD

#5245BD is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.6% C 0.181 H 282.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5245BD
RGBrgb(82, 69, 189)
HSLhsl(247, 48%, 51%)
HSVhsv(247, 63%, 74%)
CMYKcmyk(56.6%, 63.5%, 0%, 25.9%)
CIE-LABlab(37.34, 39.02, -61.54)
CIE-LCHlch(37.34, 72.87, 302.38°)
OKLaboklab(47.62% 0.0375 -0.1768)
OKLCHoklch(47.62% 0.181 282)
XYZxyz(14.7903, 9.7233, 49.2317)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245BD #B0BD45
analogous
#4574BD #5245BD #8E45BD
triadic
#5245BD #BD5245 #45BD52
tetradic
#5245BD #BD4574 #B0BD45 #45BD8E
square
#5245BD #BD4574 #B0BD45 #45BD8E
split-complementary
#5245BD #BD8E45 #74BD45
monochromatic
#2B2464 #3E3491 #5245BD #7C72CD #A69FDD

Accessibility & contrast

On white

7.13
#5245BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5245BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5245BD
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245BD#FFFFFF#000000##FFFFFF
##5245BD1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#1A637A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5245bd;
/* rgb */ color: rgb(82, 69, 189);
/* oklch */ color: oklch(47.6% 0.181 282.0);
Tailwind
colors: {
  custom: {
    50: '#8d79d2',
    500: '#5245bd',
    950: '#000000',
  },
}
SCSS
$custom: #5245bd;
$custom-light: #8d79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5245bd",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 246.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.18078,
    "h": 282
  },
  "luminance": 0.09724
}

Semantic roles & 50–950 ramp

primary
#5245BD
secondary
#C4CA94
accent
#D751C9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5245BD

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

Preview Lab → · Contrast checker → · Palette generator →

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