#5F5DCB#5F5DCB

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

Color values

HEX#5F5DCB
RGBrgb(95, 93, 203)
HSLhsl(241, 51%, 58%)
HSVhsv(241, 54%, 80%)
CMYKcmyk(53.2%, 54.2%, 0%, 20.4%)
CIE-LABlab(45.04, 31.33, -57.14)
CIE-LCHlch(45.04, 65.16, 298.73°)
OKLaboklab(53.88% 0.029 -0.1634)
OKLCHoklch(53.88% 0.166 280.1)
XYZxyz(19.4098, 14.5722, 58.2783)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DCB #C9CB5D
analogous
#5D92CB #5F5DCB #965DCB
triadic
#5F5DCB #CB5F5D #5DCB5F
tetradic
#5F5DCB #CB5D92 #C9CB5D #5DCB96
square
#5F5DCB #CB5D92 #C9CB5D #5DCB96
split-complementary
#5F5DCB #CB965D #92CB5D
monochromatic
#2C2A83 #3B39B2 #5F5DCB #8D8BDA #BBBAE9

Accessibility & contrast

On white

5.36
#5F5DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F5DCB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DCB#FFFFFF#000000##FFFFFF
##5F5DCB1.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6FCF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#2F768B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5dcb;
/* rgb */ color: rgb(95, 93, 203);
/* oklch */ color: oklch(53.9% 0.166 280.1);
Tailwind
colors: {
  custom: {
    50: '#958bdb',
    500: '#5f5dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dcb;
$custom-light: #958bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dcb",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 203
  },
  "hsl": {
    "h": 241.091,
    "s": 51.402,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53877,
    "c": 0.16596,
    "h": 280.1
  },
  "luminance": 0.14573
}

Semantic roles & 50–950 ramp

primary
#5F5DCB
secondary
#D7D8AC
accent
#DB4DD8
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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