#5F47DA#5F47DA

#5F47DA is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.4% C 0.213 H 283.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5F47DA
RGBrgb(95, 71, 218)
HSLhsl(250, 67%, 57%)
HSVhsv(250, 67%, 85%)
CMYKcmyk(56.4%, 67.4%, 0%, 14.5%)
CIE-LABlab(41.22, 48.90, -71.97)
CIE-LCHlch(41.22, 87.01, 304.19°)
OKLaboklab(51.42% 0.0494 -0.2071)
OKLCHoklch(51.42% 0.213 283.4)
XYZxyz(19.6236, 12.0001, 67.5983)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47DA #C2DA47
analogous
#4779DA #5F47DA #A947DA
triadic
#5F47DA #DA5F47 #47DA5F
tetradic
#5F47DA #DA4779 #C2DA47 #47DAA9
square
#5F47DA #DA4779 #C2DA47 #47DAA9
split-complementary
#5F47DA #DAA947 #79DA47
monochromatic
#2E1C8B #3F26BE #5F47DA #8B7AE4 #B8ADEE

Accessibility & contrast

On white

6.18
#5F47DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F47DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47DA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47DA#FFFFFF#000000##FFFFFF
##5F47DA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DE
Deuteranopia (green-blind)
#005CD7
Tritanopia (blue-blind)
#1F6D8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f47da;
/* rgb */ color: rgb(95, 71, 218);
/* oklch */ color: oklch(51.4% 0.213 283.4);
Tailwind
colors: {
  custom: {
    50: '#987ce7',
    500: '#5f47da',
    950: '#000000',
  },
}
SCSS
$custom: #5f47da;
$custom-light: #987ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47da",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 218
  },
  "hsl": {
    "h": 249.796,
    "s": 66.516,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51424,
    "c": 0.21289,
    "h": 283.4
  },
  "luminance": 0.12001
}

Semantic roles & 50–950 ramp

primary
#5F47DA
secondary
#D3DCA0
accent
#E93ECE
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F47DA

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

Preview Lab → · Contrast checker → · Palette generator →

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