#5052CD#5052CD

#5052CD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.186 H 276.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5052CD
RGBrgb(80, 82, 205)
HSLhsl(239, 56%, 56%)
HSVhsv(239, 61%, 80%)
CMYKcmyk(61%, 60%, 0%, 19.6%)
CIE-LABlab(41.45, 35.97, -64.17)
CIE-LCHlch(41.45, 73.56, 299.27°)
OKLaboklab(50.98% 0.0221 -0.1846)
OKLCHoklch(50.98% 0.186 276.8)
XYZxyz(17.3414, 12.1465, 59.1764)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5052CD #CDCB50
analogous
#5090CD #5052CD #8C50CD
triadic
#5052CD #CD5052 #52CD50
tetradic
#5052CD #CD5090 #CDCB50 #50CD8C
square
#5052CD #CD5090 #CDCB50 #50CD8C
split-complementary
#5052CD #CD8C50 #90CD50
monochromatic
#24267E #3234AE #5052CD #8081DB #AFB0E8

Accessibility & contrast

On white

6.12
#5052CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5052CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5052CD
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5052CD#FFFFFF#000000##FFFFFF
##5052CD1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5052cd;
/* rgb */ color: rgb(80, 82, 205);
/* oklch */ color: oklch(51.0% 0.186 276.8);
Tailwind
colors: {
  custom: {
    50: '#8d83dd',
    500: '#5052cd',
    950: '#000000',
  },
}
SCSS
$custom: #5052cd;
$custom-light: #8d83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5052cd",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 239.04,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.18588,
    "h": 276.8
  },
  "luminance": 0.12148
}

Semantic roles & 50–950 ramp

primary
#5052CD
secondary
#D6D5A2
accent
#DC49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5052CD

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

Preview Lab → · Contrast checker → · Palette generator →

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