#5F48D9#5F48D9

#5F48D9 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.5% C 0.211 H 283.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5F48D9
RGBrgb(95, 72, 217)
HSLhsl(250, 66%, 57%)
HSVhsv(250, 67%, 85%)
CMYKcmyk(56.2%, 66.8%, 0%, 14.9%)
CIE-LABlab(41.34, 48.04, -71.20)
CIE-LCHlch(41.34, 85.89, 304.01°)
OKLaboklab(51.49% 0.0487 -0.2048)
OKLCHoklch(51.49% 0.211 283.4)
XYZxyz(19.5572, 12.0762, 66.9326)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48D9 #C2D948
analogous
#487AD9 #5F48D9 #A848D9
triadic
#5F48D9 #D95F48 #48D95F
tetradic
#5F48D9 #D9487A #C2D948 #48D9A8
square
#5F48D9 #D9487A #C2D948 #48D9A8
split-complementary
#5F48D9 #D9A848 #7AD948
monochromatic
#2E1D8A #3F27BD #5F48D9 #8B7BE4 #B8ADEE

Accessibility & contrast

On white

6.15
#5F48D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5F48D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48D9
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48D9#FFFFFF#000000##FFFFFF
##5F48D91.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#206D8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f48d9;
/* rgb */ color: rgb(95, 72, 217);
/* oklch */ color: oklch(51.5% 0.211 283.4);
Tailwind
colors: {
  custom: {
    50: '#987de6',
    500: '#5f48d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f48d9;
$custom-light: #987de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48d9",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 249.517,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51485,
    "c": 0.21053,
    "h": 283.4
  },
  "luminance": 0.12077
}

Semantic roles & 50–950 ramp

primary
#5F48D9
secondary
#D3DCA1
accent
#E93FCE
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F48D9

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

Preview Lab → · Contrast checker → · Palette generator →

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