#5251CF#5251CF

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

Color values

HEX#5251CF
RGBrgb(82, 81, 207)
HSLhsl(240, 57%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.4%, 60.9%, 0%, 18.8%)
CIE-LABlab(41.50, 37.56, -65.22)
CIE-LCHlch(41.50, 75.26, 299.94°)
OKLaboklab(51.11% 0.0253 -0.1876)
OKLCHoklch(51.11% 0.189 277.7)
XYZxyz(17.6810, 12.1824, 60.4391)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251CF #CECF51
analogous
#518FCF #5251CF #9151CF
triadic
#5251CF #CF5251 #51CF52
tetradic
#5251CF #CF518F #CECF51 #51CF91
square
#5251CF #CF518F #CECF51 #51CF91
split-complementary
#5251CF #CF9151 #8FCF51
monochromatic
#252482 #3231B2 #5251CF #8281DC #B1B1E9

Accessibility & contrast

On white

6.11
#5251CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5251CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251CF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251CF#FFFFFF#000000##FFFFFF
##5251CF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5251cf;
/* rgb */ color: rgb(82, 81, 207);
/* oklch */ color: oklch(51.1% 0.189 277.7);
Tailwind
colors: {
  custom: {
    50: '#8f82df',
    500: '#5251cf',
    950: '#000000',
  },
}
SCSS
$custom: #5251cf;
$custom-light: #8f82df;
$custom-dark: #000000;
JSON
{
  "hex": "#5251cf",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 240.476,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.18931,
    "h": 277.7
  },
  "luminance": 0.12184
}

Semantic roles & 50–950 ramp

primary
#5251CF
secondary
#D7D8A4
accent
#E048DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5251CF

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

Preview Lab → · Contrast checker → · Palette generator →

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