#5F47D9#5F47D9

#5F47D9 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.3% C 0.212 H 283.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5F47D9
RGBrgb(95, 71, 217)
HSLhsl(250, 66%, 56%)
HSVhsv(250, 67%, 85%)
CMYKcmyk(56.2%, 67.3%, 0%, 14.9%)
CIE-LABlab(41.13, 48.60, -71.53)
CIE-LCHlch(41.13, 86.48, 304.19°)
OKLaboklab(51.34% 0.0496 -0.2058)
OKLCHoklch(51.34% 0.212 283.5)
XYZxyz(19.4931, 11.9479, 66.9112)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47D9 #C1D947
analogous
#4778D9 #5F47D9 #A847D9
triadic
#5F47D9 #D95F47 #47D95F
tetradic
#5F47D9 #D94778 #C1D947 #47D9A8
square
#5F47D9 #D94778 #C1D947 #47D9A8
split-complementary
#5F47D9 #D9A847 #78D947
monochromatic
#2E1C89 #3F27BC #5F47D9 #8B7AE3 #B7ACEE

Accessibility & contrast

On white

6.20
#5F47D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F47D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47D9
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47D9#FFFFFF#000000##FFFFFF
##5F47D91.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#206D8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f47d9;
/* rgb */ color: rgb(95, 71, 217);
/* oklch */ color: oklch(51.3% 0.212 283.5);
Tailwind
colors: {
  custom: {
    50: '#987ce6',
    500: '#5f47d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f47d9;
$custom-light: #987ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47d9",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 249.863,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51339,
    "c": 0.21168,
    "h": 283.5
  },
  "luminance": 0.11949
}

Semantic roles & 50–950 ramp

primary
#5F47D9
secondary
#D2DCA0
accent
#E93FCD
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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