#5251D2#5251D2

#5251D2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.193 H 277.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5251D2
RGBrgb(82, 81, 210)
HSLhsl(240, 59%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(61%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.74, 38.54, -66.57)
CIE-LCHlch(41.74, 76.92, 300.07°)
OKLaboklab(51.35% 0.0252 -0.1916)
OKLCHoklch(51.35% 0.193 277.5)
XYZxyz(18.0512, 12.3305, 62.3890)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251D2 #D1D251
analogous
#5191D2 #5251D2 #9351D2
triadic
#5251D2 #D25251 #51D252
tetradic
#5251D2 #D25191 #D1D251 #51D293
square
#5251D2 #D25191 #D1D251 #51D293
split-complementary
#5251D2 #D29351 #91D251
monochromatic
#232386 #302FB7 #5251D2 #8282DF #B3B2EB

Accessibility & contrast

On white

6.06
#5251D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5251D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251D2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251D2#FFFFFF#000000##FFFFFF
##5251D21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5251d2;
/* rgb */ color: rgb(82, 81, 210);
/* oklch */ color: oklch(51.3% 0.193 277.5);
Tailwind
colors: {
  custom: {
    50: '#8f82e1',
    500: '#5251d2',
    950: '#000000',
  },
}
SCSS
$custom: #5251d2;
$custom-light: #8f82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5251d2",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 240.465,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51349,
    "c": 0.19323,
    "h": 277.5
  },
  "luminance": 0.12332
}

Semantic roles & 50–950 ramp

primary
#5251D2
secondary
#D9DAA5
accent
#E246E1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5251D2

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

Preview Lab → · Contrast checker → · Palette generator →

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