#5F5BD5#5F5BD5

#5F5BD5 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.2% C 0.182 H 279.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F5BD5
RGBrgb(95, 91, 213)
HSLhsl(242, 59%, 60%)
HSVhsv(242, 57%, 84%)
CMYKcmyk(55.4%, 57.3%, 0%, 16.5%)
CIE-LABlab(45.25, 35.70, -62.55)
CIE-LCHlch(45.25, 72.02, 299.72°)
OKLaboklab(54.25% 0.0313 -0.1793)
OKLCHoklch(54.25% 0.182 279.9)
XYZxyz(20.4669, 14.7178, 64.7002)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BD5 #D1D55B
analogous
#5B94D5 #5F5BD5 #9C5BD5
triadic
#5F5BD5 #D55F5B #5BD55F
tetradic
#5F5BD5 #D55B94 #D1D55B #5BD59C
square
#5F5BD5 #D55B94 #D1D55B #5BD59C
split-complementary
#5F5BD5 #D59C5B #94D55B
monochromatic
#292591 #3632C1 #5F5BD5 #8F8CE1 #BEBCEE

Accessibility & contrast

On white

5.32
#5F5BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5F5BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BD5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BD5#FFFFFF#000000##FFFFFF
##5F5BD51.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#23788F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5bd5;
/* rgb */ color: rgb(95, 91, 213);
/* oklch */ color: oklch(54.2% 0.182 279.9);
Tailwind
colors: {
  custom: {
    50: '#9689e3',
    500: '#5f5bd5',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bd5;
$custom-light: #9689e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bd5",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 241.967,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.54245,
    "c": 0.18203,
    "h": 279.9
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#5F5BD5
secondary
#DCDEAE
accent
#E245DD
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5F5BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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