#5D51F2#5D51F2

#5D51F2 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.8% C 0.231 H 278.9°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5D51F2
RGBrgb(93, 81, 242)
HSLhsl(244, 86%, 63%)
HSVhsv(244, 67%, 95%)
CMYKcmyk(61.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(45.11, 50.32, -79.20)
CIE-LCHlch(45.11, 93.83, 302.43°)
OKLaboklab(54.81% 0.0356 -0.2283)
OKLCHoklch(54.81% 0.231 278.9)
XYZxyz(23.4785, 14.6210, 85.5721)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51F2 #E6F251
analogous
#5195F2 #5D51F2 #AD51F2
triadic
#5D51F2 #F25D51 #51F25D
tetradic
#5D51F2 #F25195 #E6F251 #51F2AD
square
#5D51F2 #F25195 #E6F251 #51F2AD
split-complementary
#5D51F2 #F2AD51 #95F251
monochromatic
#1B0EBB #2818EE #5D51F2 #928AF6 #C7C3FB

Accessibility & contrast

On white

5.35
#5D51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5D51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51F2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51F2#FFFFFF#000000##FFFFFF
##5D51F21.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F7
Deuteranopia (green-blind)
#0064EF
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5d51f2;
/* rgb */ color: rgb(93, 81, 242);
/* oklch */ color: oklch(54.8% 0.231 278.9);
Tailwind
colors: {
  custom: {
    50: '#9a83f8',
    500: '#5d51f2',
    950: '#000000',
  },
}
SCSS
$custom: #5d51f2;
$custom-light: #9a83f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51f2",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 244.472,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54806,
    "c": 0.2311,
    "h": 278.9
  },
  "luminance": 0.14623
}

Semantic roles & 50–950 ramp

primary
#5D51F2
secondary
#E8ECB3
accent
#E303D2
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5D51F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva