#5F5BD4#5F5BD4

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

Color values

HEX#5F5BD4
RGBrgb(95, 91, 212)
HSLhsl(242, 58%, 59%)
HSVhsv(242, 57%, 83%)
CMYKcmyk(55.2%, 57.1%, 0%, 16.9%)
CIE-LABlab(45.17, 35.39, -62.09)
CIE-LCHlch(45.17, 71.47, 299.68°)
OKLaboklab(54.17% 0.0313 -0.178)
OKLCHoklch(54.17% 0.181 280)
XYZxyz(20.3403, 14.6672, 64.0338)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BD4 #D0D45B
analogous
#5B94D4 #5F5BD4 #9B5BD4
triadic
#5F5BD4 #D45F5B #5BD45F
tetradic
#5F5BD4 #D45B94 #D0D45B #5BD49B
square
#5F5BD4 #D45B94 #D0D45B #5BD49B
split-complementary
#5F5BD4 #D49B5B #94D45B
monochromatic
#29268F #3732C0 #5F5BD4 #8E8BE1 #BEBCED

Accessibility & contrast

On white

5.34
#5F5BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5F5BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BD4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BD4#FFFFFF#000000##FFFFFF
##5F5BD41.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#24778F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5bd4;
/* rgb */ color: rgb(95, 91, 212);
/* oklch */ color: oklch(54.2% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#9689e2',
    500: '#5f5bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bd4;
$custom-light: #9689e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bd4",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 241.983,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54171,
    "c": 0.18071,
    "h": 280
  },
  "luminance": 0.14669
}

Semantic roles & 50–950 ramp

primary
#5F5BD4
secondary
#DBDDAE
accent
#E246DD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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