#5F5BD2#5F5BD2

#5F5BD2 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.0% C 0.178 H 280.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5F5BD2
RGBrgb(95, 91, 210)
HSLhsl(242, 57%, 59%)
HSVhsv(242, 57%, 82%)
CMYKcmyk(54.8%, 56.7%, 0%, 17.6%)
CIE-LABlab(45.04, 34.76, -61.17)
CIE-LCHlch(45.04, 70.36, 299.60°)
OKLaboklab(54.02% 0.0313 -0.1753)
OKLCHoklch(54.02% 0.178 280.1)
XYZxyz(20.0896, 14.5669, 62.7134)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BD2 #CED25B
analogous
#5B93D2 #5F5BD2 #9B5BD2
triadic
#5F5BD2 #D25F5B #5BD25F
tetradic
#5F5BD2 #D25B93 #CED25B #5BD29B
square
#5F5BD2 #D25B93 #CED25B #5BD29B
split-complementary
#5F5BD2 #D29B5B #93D25B
monochromatic
#2A268C #3834BC #5F5BD2 #8E8BDF #BDBBEC

Accessibility & contrast

On white

5.37
#5F5BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5F5BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BD2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BD2#FFFFFF#000000##FFFFFF
##5F5BD21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#27778E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5bd2;
/* rgb */ color: rgb(95, 91, 210);
/* oklch */ color: oklch(54.0% 0.178 280.1);
Tailwind
colors: {
  custom: {
    50: '#9689e1',
    500: '#5f5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bd2;
$custom-light: #9689e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bd2",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 242.017,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54023,
    "c": 0.17804,
    "h": 280.1
  },
  "luminance": 0.14568
}

Semantic roles & 50–950 ramp

primary
#5F5BD2
secondary
#DADCAD
accent
#E048DB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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