#5052D2#5052D2

#5052D2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.192 H 276.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5052D2
RGBrgb(80, 82, 210)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 62%, 82%)
CMYKcmyk(61.9%, 61%, 0%, 17.6%)
CIE-LABlab(41.83, 37.61, -66.42)
CIE-LCHlch(41.83, 76.33, 299.52°)
OKLaboklab(51.38% 0.022 -0.1912)
OKLCHoklch(51.38% 0.192 276.6)
XYZxyz(17.9546, 12.3918, 62.4060)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5052D2 #D2D050
analogous
#5093D2 #5052D2 #8F50D2
triadic
#5052D2 #D25052 #52D250
tetradic
#5052D2 #D25093 #D2D050 #50D28F
square
#5052D2 #D25093 #D2D050 #50D28F
split-complementary
#5052D2 #D28F50 #93D250
monochromatic
#222485 #2F31B6 #5052D2 #8182DF #B1B2EB

Accessibility & contrast

On white

6.04
#5052D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5052D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5052D2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5052D2#FFFFFF#000000##FFFFFF
##5052D21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5052d2;
/* rgb */ color: rgb(80, 82, 210);
/* oklch */ color: oklch(51.4% 0.192 276.6);
Tailwind
colors: {
  custom: {
    50: '#8e83e1',
    500: '#5052d2',
    950: '#000000',
  },
}
SCSS
$custom: #5052d2;
$custom-light: #8e83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5052d2",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 239.077,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51383,
    "c": 0.19244,
    "h": 276.6
  },
  "luminance": 0.12393
}

Semantic roles & 50–950 ramp

primary
#5052D2
secondary
#D9D9A4
accent
#E046E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5052D2

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

Preview Lab → · Contrast checker → · Palette generator →

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