#5251DB#5251DB

#5251DB is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.1% C 0.205 H 276.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5251DB
RGBrgb(82, 81, 219)
HSLhsl(240, 66%, 59%)
HSVhsv(240, 63%, 86%)
CMYKcmyk(62.6%, 63%, 0%, 14.1%)
CIE-LABlab(42.45, 41.47, -70.57)
CIE-LCHlch(42.45, 81.85, 300.44°)
OKLaboklab(52.09% 0.0246 -0.2033)
OKLCHoklch(52.09% 0.205 276.9)
XYZxyz(19.2041, 12.7916, 68.4611)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251DB #DADB51
analogous
#5195DB #5251DB #9751DB
triadic
#5251DB #DB5251 #51DB52
tetradic
#5251DB #DB5195 #DADB51 #51DB97
square
#5251DB #DB5195 #DADB51 #51DB97
split-complementary
#5251DB #DB9751 #95DB51
monochromatic
#1F1E93 #2A29C6 #5251DB #8484E5 #B7B6F0

Accessibility & contrast

On white

5.90
#5251DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5251DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251DB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251DB#FFFFFF#000000##FFFFFF
##5251DB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5251db;
/* rgb */ color: rgb(82, 81, 219);
/* oklch */ color: oklch(52.1% 0.205 276.9);
Tailwind
colors: {
  custom: {
    50: '#9182e7',
    500: '#5251db',
    950: '#000000',
  },
}
SCSS
$custom: #5251db;
$custom-light: #9182e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5251db",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 240.435,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52091,
    "c": 0.2048,
    "h": 276.9
  },
  "luminance": 0.12793
}

Semantic roles & 50–950 ramp

primary
#5251DB
secondary
#DFDFA9
accent
#E93FE7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251DB

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

Preview Lab → · Contrast checker → · Palette generator →

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