#5F48D6#5F48D6

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

Color values

HEX#5F48D6
RGBrgb(95, 72, 214)
HSLhsl(250, 63%, 56%)
HSVhsv(250, 66%, 84%)
CMYKcmyk(55.6%, 66.4%, 0%, 16.1%)
CIE-LABlab(41.09, 47.14, -69.88)
CIE-LCHlch(41.09, 84.30, 304.01°)
OKLaboklab(51.23% 0.0491 -0.2009)
OKLCHoklch(51.23% 0.207 283.7)
XYZxyz(19.1706, 11.9215, 64.8962)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48D6 #BFD648
analogous
#4878D6 #5F48D6 #A648D6
triadic
#5F48D6 #D65F48 #48D65F
tetradic
#5F48D6 #D64878 #BFD648 #48D6A6
square
#5F48D6 #D64878 #BFD648 #48D6A6
split-complementary
#5F48D6 #D6A648 #78D648
monochromatic
#2F1E86 #4029B8 #5F48D6 #8B7AE1 #B6ACEC

Accessibility & contrast

On white

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

On black

3.38
#5F48D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F48D6#FFFFFF#000000##FFFFFF
##5F48D61.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#256C89
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f48d6;
/* rgb */ color: rgb(95, 72, 214);
/* oklch */ color: oklch(51.2% 0.207 283.7);
Tailwind
colors: {
  custom: {
    50: '#977de4',
    500: '#5f48d6',
    950: '#000000',
  },
}
SCSS
$custom: #5f48d6;
$custom-light: #977de4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48d6",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 214
  },
  "hsl": {
    "h": 249.718,
    "s": 63.393,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51232,
    "c": 0.20686,
    "h": 283.7
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#5F48D6
secondary
#D1DAA0
accent
#E641CC
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F48D6

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

Preview Lab → · Contrast checker → · Palette generator →

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