#5251CB#5251CB

#5251CB is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.8% C 0.184 H 278.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5251CB
RGBrgb(82, 81, 203)
HSLhsl(240, 54%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(59.6%, 60.1%, 0%, 20.4%)
CIE-LABlab(41.20, 36.26, -63.41)
CIE-LCHlch(41.20, 73.04, 299.76°)
OKLaboklab(50.79% 0.0255 -0.1823)
OKLCHoklch(50.79% 0.184 278)
XYZxyz(17.1981, 11.9892, 57.8962)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251CB #CACB51
analogous
#518DCB #5251CB #8F51CB
triadic
#5251CB #CB5251 #51CB52
tetradic
#5251CB #CB518D #CACB51 #51CB8F
square
#5251CB #CB518D #CACB51 #51CB8F
split-complementary
#5251CB #CB8F51 #8DCB51
monochromatic
#26257C #3433AC #5251CB #8180D9 #B0AFE7

Accessibility & contrast

On white

6.18
#5251CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5251CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251CB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251CB#FFFFFF#000000##FFFFFF
##5251CB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5251cb;
/* rgb */ color: rgb(82, 81, 203);
/* oklch */ color: oklch(50.8% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#8e82dc',
    500: '#5251cb',
    950: '#000000',
  },
}
SCSS
$custom: #5251cb;
$custom-light: #8e82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5251cb",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 240.492,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50785,
    "c": 0.18406,
    "h": 278
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#5251CB
secondary
#D5D5A3
accent
#DD4ADC
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5251CB

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

Preview Lab → · Contrast checker → · Palette generator →

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