#5246CB#5246CB

#5246CB is a mid, vivid blue. Relative luminance 0.105; OKLCH L 49.0% C 0.197 H 280.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5246CB
RGBrgb(82, 70, 203)
HSLhsl(245, 56%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(59.6%, 65.5%, 0%, 20.4%)
CIE-LABlab(38.70, 42.85, -67.49)
CIE-LCHlch(38.70, 79.94, 302.41°)
OKLaboklab(48.96% 0.0352 -0.1943)
OKLCHoklch(48.96% 0.197 280.3)
XYZxyz(16.4459, 10.4848, 57.6455)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246CB #BFCB46
analogous
#467CCB #5246CB #9546CB
triadic
#5246CB #CB5246 #46CB52
tetradic
#5246CB #CB467C #BFCB46 #46CB95
square
#5246CB #CB467C #BFCB46 #46CB95
split-complementary
#5246CB #CB9546 #7CCB46
monochromatic
#292176 #392EA5 #5246CB #7F76D8 #ABA6E6

Accessibility & contrast

On white

6.78
#5246CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5246CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5246CB
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246CB#FFFFFF#000000##FFFFFF
##5246CB1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5246cb;
/* rgb */ color: rgb(82, 70, 203);
/* oklch */ color: oklch(49.0% 0.197 280.3);
Tailwind
colors: {
  custom: {
    50: '#8f7adc',
    500: '#5246cb',
    950: '#000000',
  },
}
SCSS
$custom: #5246cb;
$custom-light: #8f7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5246cb",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 245.414,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48958,
    "c": 0.19747,
    "h": 280.3
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

primary
#5246CB
secondary
#CED39A
accent
#DF48D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5246CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5246CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva