#5245CB#5245CB

#5245CB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.8% C 0.199 H 280.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5245CB
RGBrgb(82, 69, 203)
HSLhsl(246, 56%, 53%)
HSVhsv(246, 66%, 80%)
CMYKcmyk(59.6%, 66%, 0%, 20.4%)
CIE-LABlab(38.48, 43.43, -67.84)
CIE-LCHlch(38.48, 80.55, 302.63°)
OKLaboklab(48.8% 0.036 -0.1953)
OKLCHoklch(48.8% 0.199 280.5)
XYZxyz(16.3839, 10.3607, 57.6248)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245CB #BECB45
analogous
#457BCB #5245CB #9545CB
triadic
#5245CB #CB5245 #45CB52
tetradic
#5245CB #CB457B #BECB45 #45CB95
square
#5245CB #CB457B #BECB45 #45CB95
split-complementary
#5245CB #CB9545 #7BCB45
monochromatic
#292175 #3A2EA5 #5245CB #7E75D8 #ABA5E6

Accessibility & contrast

On white

6.84
#5245CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5245CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5245CB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245CB#FFFFFF#000000##FFFFFF
##5245CB1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5245cb;
/* rgb */ color: rgb(82, 69, 203);
/* oklch */ color: oklch(48.8% 0.199 280.5);
Tailwind
colors: {
  custom: {
    50: '#8f7adc',
    500: '#5245cb',
    950: '#000000',
  },
}
SCSS
$custom: #5245cb;
$custom-light: #8f7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5245cb",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 245.821,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48801,
    "c": 0.19865,
    "h": 280.5
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#5245CB
secondary
#CDD399
accent
#E048D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5245CB

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

Preview Lab → · Contrast checker → · Palette generator →

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