#5F51E9#5F51E9

#5F51E9 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.2% C 0.220 H 280.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5F51E9
RGBrgb(95, 81, 233)
HSLhsl(246, 78%, 62%)
HSVhsv(246, 65%, 91%)
CMYKcmyk(59.2%, 65.2%, 0%, 8.6%)
CIE-LABlab(44.52, 47.83, -75.10)
CIE-LCHlch(44.52, 89.04, 302.49°)
OKLaboklab(54.19% 0.0392 -0.2162)
OKLCHoklch(54.19% 0.22 280.3)
XYZxyz(22.3651, 14.1994, 78.6372)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51E9 #DBE951
analogous
#518FE9 #5F51E9 #AB51E9
triadic
#5F51E9 #E95F51 #51E95F
tetradic
#5F51E9 #E9518F #DBE951 #51E9AB
square
#5F51E9 #E9518F #DBE951 #51E9AB
split-complementary
#5F51E9 #E9AB51 #8FE951
monochromatic
#2316AA #2E1CE0 #5F51E9 #9187F0 #C3BEF7

Accessibility & contrast

On white

5.47
#5F51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5F51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51E9
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51E9#FFFFFF#000000##FFFFFF
##5F51E91.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEE
Deuteranopia (green-blind)
#0063E6
Tritanopia (blue-blind)
#007896
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f51e9;
/* rgb */ color: rgb(95, 81, 233);
/* oklch */ color: oklch(54.2% 0.220 280.3);
Tailwind
colors: {
  custom: {
    50: '#9a83f1',
    500: '#5f51e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f51e9;
$custom-light: #9a83f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51e9",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 245.526,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.21977,
    "h": 280.3
  },
  "luminance": 0.14201
}

Semantic roles & 50–950 ramp

primary
#5F51E9
secondary
#E2E7AF
accent
#DA0CC7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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