#5251CD#5251CD

#5251CD is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.187 H 277.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5251CD
RGBrgb(82, 81, 205)
HSLhsl(240, 55%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.35, 36.91, -64.32)
CIE-LCHlch(41.35, 74.16, 299.85°)
OKLaboklab(50.94% 0.0254 -0.185)
OKLCHoklch(50.94% 0.187 277.8)
XYZxyz(17.4380, 12.0852, 59.1595)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251CD #CCCD51
analogous
#518ECD #5251CD #9051CD
triadic
#5251CD #CD5251 #51CD52
tetradic
#5251CD #CD518E #CCCD51 #51CD90
square
#5251CD #CD518E #CCCD51 #51CD90
split-complementary
#5251CD #CD9051 #8ECD51
monochromatic
#25257F #3332AF #5251CD #8181DB #B1B0E8

Accessibility & contrast

On white

6.15
#5251CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5251CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251CD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251CD#FFFFFF#000000##FFFFFF
##5251CD1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5251cd;
/* rgb */ color: rgb(82, 81, 205);
/* oklch */ color: oklch(50.9% 0.187 277.8);
Tailwind
colors: {
  custom: {
    50: '#8f82dd',
    500: '#5251cd',
    950: '#000000',
  },
}
SCSS
$custom: #5251cd;
$custom-light: #8f82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5251cd",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 240.484,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.1867,
    "h": 277.8
  },
  "luminance": 0.12086
}

Semantic roles & 50–950 ramp

primary
#5251CD
secondary
#D6D7A3
accent
#DF49DD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5251CD

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

Preview Lab → · Contrast checker → · Palette generator →

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