#5F5DCF#5F5DCF

#5F5DCF is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.2% C 0.171 H 279.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F5DCF
RGBrgb(95, 93, 207)
HSLhsl(241, 54%, 59%)
HSVhsv(241, 55%, 81%)
CMYKcmyk(54.1%, 55.1%, 0%, 18.8%)
CIE-LABlab(45.31, 32.59, -59.00)
CIE-LCHlch(45.31, 67.41, 298.91°)
OKLaboklab(54.16% 0.0292 -0.1689)
OKLCHoklch(54.16% 0.171 279.8)
XYZxyz(19.8926, 14.7653, 60.8212)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DCF #CDCF5D
analogous
#5D94CF #5F5DCF #985DCF
triadic
#5F5DCF #CF5F5D #5DCF5F
tetradic
#5F5DCF #CF5D94 #CDCF5D #5DCF98
square
#5F5DCF #CF5D94 #CDCF5D #5DCF98
split-complementary
#5F5DCF #CF985D #94CF5D
monochromatic
#2A2989 #3937B8 #5F5DCF #8E8CDD #BCBBEB

Accessibility & contrast

On white

5.31
#5F5DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5F5DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DCF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DCF#FFFFFF#000000##FFFFFF
##5F5DCF1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F70D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#2B778D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f5dcf;
/* rgb */ color: rgb(95, 93, 207);
/* oklch */ color: oklch(54.2% 0.171 279.8);
Tailwind
colors: {
  custom: {
    50: '#958bde',
    500: '#5f5dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5f5dcf;
$custom-light: #958bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5dcf",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 241.053,
    "s": 54.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.54163,
    "c": 0.17139,
    "h": 279.8
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#5F5DCF
secondary
#DADAAD
accent
#DE4ADB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5F5DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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