#5052CF#5052CF

#5052CF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.189 H 276.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5052CF
RGBrgb(80, 82, 207)
HSLhsl(239, 57%, 56%)
HSVhsv(239, 61%, 81%)
CMYKcmyk(61.4%, 60.4%, 0%, 18.8%)
CIE-LABlab(41.60, 36.63, -65.07)
CIE-LCHlch(41.60, 74.67, 299.37°)
OKLaboklab(51.14% 0.0221 -0.1872)
OKLCHoklch(51.14% 0.189 276.7)
XYZxyz(17.5844, 12.2437, 60.4560)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5052CF #CFCD50
analogous
#5092CF #5052CF #8E50CF
triadic
#5052CF #CF5052 #52CF50
tetradic
#5052CF #CF5092 #CFCD50 #50CF8E
square
#5052CF #CF5092 #CFCD50 #50CF8E
split-complementary
#5052CF #CF8E50 #92CF50
monochromatic
#232581 #3133B1 #5052CF #8081DC #B0B1E9

Accessibility & contrast

On white

6.09
#5052CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5052CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5052CF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5052CF#FFFFFF#000000##FFFFFF
##5052CF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5052cf;
/* rgb */ color: rgb(80, 82, 207);
/* oklch */ color: oklch(51.1% 0.189 276.7);
Tailwind
colors: {
  custom: {
    50: '#8e83df',
    500: '#5052cf',
    950: '#000000',
  },
}
SCSS
$custom: #5052cf;
$custom-light: #8e83df;
$custom-dark: #000000;
JSON
{
  "hex": "#5052cf",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 239.055,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51141,
    "c": 0.18852,
    "h": 276.7
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#5052CF
secondary
#D8D7A3
accent
#DE48E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5052CF

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

Preview Lab → · Contrast checker → · Palette generator →

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