#5F4FCB#5F4FCB

#5F4FCB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.184 H 283.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5F4FCB
RGBrgb(95, 79, 203)
HSLhsl(248, 54%, 55%)
HSVhsv(248, 61%, 80%)
CMYKcmyk(53.2%, 61.1%, 0%, 20.4%)
CIE-LABlab(41.74, 39.77, -62.48)
CIE-LCHlch(41.74, 74.06, 302.48°)
OKLaboklab(51.44% 0.0436 -0.1792)
OKLCHoklch(51.44% 0.184 283.7)
XYZxyz(18.2915, 12.3356, 57.9055)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FCB #BBCB4F
analogous
#4F7DCB #5F4FCB #9D4FCB
triadic
#5F4FCB #CB5F4F #4FCB5F
tetradic
#5F4FCB #CB4F7D #BBCB4F #4FCB9D
square
#5F4FCB #CB4F7D #BBCB4F #4FCB9D
split-complementary
#5F4FCB #CB9D4F #7DCB4F
monochromatic
#30247B #4232AA #5F4FCB #8A7ED9 #B5ADE7

Accessibility & contrast

On white

6.06
#5F4FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5F4FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FCB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FCB#FFFFFF#000000##FFFFFF
##5F4FCB1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#316D85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f4fcb;
/* rgb */ color: rgb(95, 79, 203);
/* oklch */ color: oklch(51.4% 0.184 283.7);
Tailwind
colors: {
  custom: {
    50: '#9581dc',
    500: '#5f4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4fcb;
$custom-light: #9581dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4fcb",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 247.742,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.18441,
    "h": 283.7
  },
  "luminance": 0.12337
}

Semantic roles & 50–950 ramp

primary
#5F4FCB
secondary
#CED5A1
accent
#DE4ACB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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