#5245BC#5245BC

#5245BC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.5% C 0.179 H 282.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5245BC
RGBrgb(82, 69, 188)
HSLhsl(247, 47%, 50%)
HSVhsv(247, 63%, 74%)
CMYKcmyk(56.4%, 63.3%, 0%, 26.3%)
CIE-LABlab(37.26, 38.70, -61.08)
CIE-LCHlch(37.26, 72.31, 302.36°)
OKLaboklab(47.54% 0.0376 -0.1755)
OKLCHoklch(47.54% 0.179 282.1)
XYZxyz(14.6821, 9.6800, 48.6620)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245BC #AFBC45
analogous
#4573BC #5245BC #8E45BC
triadic
#5245BC #BC5245 #45BC52
tetradic
#5245BC #BC4573 #AFBC45 #45BC8E
square
#5245BC #BC4573 #AFBC45 #45BC8E
split-complementary
#5245BC #BC8E45 #73BC45
monochromatic
#2B2463 #3E3490 #5245BC #7C72CC #A69FDC

Accessibility & contrast

On white

7.15
#5245BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5245BC
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245BC#FFFFFF#000000##FFFFFF
##5245BC1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#1C627A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5245bc;
/* rgb */ color: rgb(82, 69, 188);
/* oklch */ color: oklch(47.5% 0.179 282.1);
Tailwind
colors: {
  custom: {
    50: '#8d79d1',
    500: '#5245bc',
    950: '#000000',
  },
}
SCSS
$custom: #5245bc;
$custom-light: #8d79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5245bc",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 246.555,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47536,
    "c": 0.17947,
    "h": 282.1
  },
  "luminance": 0.09681
}

Semantic roles & 50–950 ramp

primary
#5245BC
secondary
#C3C994
accent
#D751C8
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5245BC

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

Preview Lab → · Contrast checker → · Palette generator →

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