#5351D2#5351D2

#5351D2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.193 H 277.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5351D2
RGBrgb(83, 81, 210)
HSLhsl(241, 59%, 57%)
HSVhsv(241, 61%, 82%)
CMYKcmyk(60.5%, 61.4%, 0%, 17.6%)
CIE-LABlab(41.81, 38.70, -66.45)
CIE-LCHlch(41.81, 76.90, 300.22°)
OKLaboklab(51.42% 0.0264 -0.1912)
OKLCHoklch(51.42% 0.193 277.9)
XYZxyz(18.1388, 12.3756, 62.3932)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5351D2 #D0D251
analogous
#5190D2 #5351D2 #9351D2
triadic
#5351D2 #D25351 #51D253
tetradic
#5351D2 #D25190 #D0D251 #51D293
square
#5351D2 #D25190 #D0D251 #51D293
split-complementary
#5351D2 #D29351 #90D251
monochromatic
#242386 #312FB7 #5351D2 #8382DF #B3B2EB

Accessibility & contrast

On white

6.04
#5351D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5351D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5351D2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5351D2#FFFFFF#000000##FFFFFF
##5351D21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5351d2;
/* rgb */ color: rgb(83, 81, 210);
/* oklch */ color: oklch(51.4% 0.193 277.9);
Tailwind
colors: {
  custom: {
    50: '#9082e1',
    500: '#5351d2',
    950: '#000000',
  },
}
SCSS
$custom: #5351d2;
$custom-light: #9082e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5351d2",
  "rgb": {
    "r": 83,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 240.93,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51418,
    "c": 0.19301,
    "h": 277.9
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5351D2

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

Preview Lab → · Contrast checker → · Palette generator →

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