#5251DD#5251DD

#5251DD is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.207 H 276.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5251DD
RGBrgb(82, 81, 221)
HSLhsl(240, 67%, 59%)
HSVhsv(240, 63%, 87%)
CMYKcmyk(62.9%, 63.3%, 0%, 13.3%)
CIE-LABlab(42.61, 42.12, -71.45)
CIE-LCHlch(42.61, 82.94, 300.52°)
OKLaboklab(52.26% 0.0245 -0.2059)
OKLCHoklch(52.26% 0.207 276.8)
XYZxyz(19.4690, 12.8976, 69.8561)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251DD #DCDD51
analogous
#5196DD #5251DD #9851DD
triadic
#5251DD #DD5251 #51DD52
tetradic
#5251DD #DD5196 #DCDD51 #51DD98
square
#5251DD #DD5196 #DCDD51 #51DD98
split-complementary
#5251DD #DD9851 #96DD51
monochromatic
#1E1D96 #2927C9 #5251DD #8584E7 #B8B7F1

Accessibility & contrast

On white

5.87
#5251DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5251DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251DD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251DD#FFFFFF#000000##FFFFFF
##5251DD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE1
Deuteranopia (green-blind)
#005FDA
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5251dd;
/* rgb */ color: rgb(82, 81, 221);
/* oklch */ color: oklch(52.3% 0.207 276.8);
Tailwind
colors: {
  custom: {
    50: '#9182e9',
    500: '#5251dd',
    950: '#000000',
  },
}
SCSS
$custom: #5251dd;
$custom-light: #9182e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5251dd",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 240.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52258,
    "c": 0.20734,
    "h": 276.8
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#5251DD
secondary
#E0E0AA
accent
#EA3EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5251DD

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

Preview Lab → · Contrast checker → · Palette generator →

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