#5F48D5#5F48D5

#5F48D5 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.1% C 0.206 H 283.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5F48D5
RGBrgb(95, 72, 213)
HSLhsl(250, 63%, 56%)
HSVhsv(250, 66%, 84%)
CMYKcmyk(55.4%, 66.2%, 0%, 16.5%)
CIE-LABlab(41.01, 46.84, -69.44)
CIE-LCHlch(41.01, 83.76, 304.00°)
OKLaboklab(51.15% 0.0493 -0.1996)
OKLCHoklch(51.15% 0.206 283.9)
XYZxyz(19.0433, 11.8706, 64.2257)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48D5 #BED548
analogous
#4877D5 #5F48D5 #A548D5
triadic
#5F48D5 #D55F48 #48D55F
tetradic
#5F48D5 #D54877 #BED548 #48D5A5
square
#5F48D5 #D54877 #BED548 #48D5A5
split-complementary
#5F48D5 #D5A548 #77D548
monochromatic
#2F1E84 #412AB6 #5F48D5 #8B7AE0 #B6ACEC

Accessibility & contrast

On white

6.22
#5F48D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5F48D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48D5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48D5#FFFFFF#000000##FFFFFF
##5F48D51.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#266C88
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f48d5;
/* rgb */ color: rgb(95, 72, 213);
/* oklch */ color: oklch(51.1% 0.206 283.9);
Tailwind
colors: {
  custom: {
    50: '#977de3',
    500: '#5f48d5',
    950: '#000000',
  },
}
SCSS
$custom: #5f48d5;
$custom-light: #977de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48d5",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 249.787,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51148,
    "c": 0.20564,
    "h": 283.9
  },
  "luminance": 0.11872
}

Semantic roles & 50–950 ramp

primary
#5F48D5
secondary
#D0DA9F
accent
#E642CB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5F48D5

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

Preview Lab → · Contrast checker → · Palette generator →

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