#5351D5#5351D5

#5351D5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.7% C 0.197 H 277.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5351D5
RGBrgb(83, 81, 213)
HSLhsl(241, 61%, 58%)
HSVhsv(241, 62%, 84%)
CMYKcmyk(61%, 62%, 0%, 16.5%)
CIE-LABlab(42.04, 39.67, -67.79)
CIE-LCHlch(42.04, 78.55, 300.34°)
OKLaboklab(51.66% 0.0262 -0.1951)
OKLCHoklch(51.66% 0.197 277.7)
XYZxyz(18.5161, 12.5265, 64.3800)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5351D5 #D3D551
analogous
#5191D5 #5351D5 #9551D5
triadic
#5351D5 #D55351 #51D553
tetradic
#5351D5 #D55191 #D3D551 #51D595
square
#5351D5 #D55191 #D3D551 #51D595
split-complementary
#5351D5 #D59551 #91D551
monochromatic
#23218A #2F2DBC #5351D5 #8482E1 #B4B4ED

Accessibility & contrast

On white

5.99
#5351D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5351D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5351D5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5351D5#FFFFFF#000000##FFFFFF
##5351D51.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5351d5;
/* rgb */ color: rgb(83, 81, 213);
/* oklch */ color: oklch(51.7% 0.197 277.7);
Tailwind
colors: {
  custom: {
    50: '#9082e3',
    500: '#5351d5',
    950: '#000000',
  },
}
SCSS
$custom: #5351d5;
$custom-light: #9082e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5351d5",
  "rgb": {
    "r": 83,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 240.909,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51663,
    "c": 0.19689,
    "h": 277.7
  },
  "luminance": 0.12528
}

Semantic roles & 50–950 ramp

primary
#5351D5
secondary
#DBDBA6
accent
#E444E2
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5351D5

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

Preview Lab → · Contrast checker → · Palette generator →

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