#5F589D#5F589D

#5F589D is a mid, moderate blue. Relative luminance 0.118; OKLCH L 49.9% C 0.108 H 286.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5F589D
RGBrgb(95, 88, 157)
HSLhsl(246, 28%, 48%)
HSVhsv(246, 44%, 62%)
CMYKcmyk(39.5%, 43.9%, 0%, 38.4%)
CIE-LABlab(40.97, 20.33, -36.69)
CIE-LCHlch(40.97, 41.95, 298.98°)
OKLaboklab(49.91% 0.0305 -0.1034)
OKLCHoklch(49.91% 0.108 286.4)
XYZxyz(14.2931, 11.8462, 33.4252)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F589D #969D58
analogous
#58739D #5F589D #81589D
triadic
#5F589D #9D5F58 #589D5F
tetradic
#5F589D #9D5873 #969D58 #589D81
square
#5F589D #9D5873 #969D58 #589D81
split-complementary
#5F589D #9D8158 #739D58
monochromatic
#302C4F #474276 #5F589D #827CB6 #A8A4CC

Accessibility & contrast

On white

6.23
#5F589D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5F589D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F589D
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F589D#FFFFFF#000000##FFFFFF
##5F589D1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4062A0
Deuteranopia (green-blind)
#3F5F9B
Tritanopia (blue-blind)
#4E6673
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f589d;
/* rgb */ color: rgb(95, 88, 157);
/* oklch */ color: oklch(49.9% 0.108 286.4);
Tailwind
colors: {
  custom: {
    50: '#8f87ba',
    500: '#5f589d',
    950: '#000000',
  },
}
SCSS
$custom: #5f589d;
$custom-light: #8f87ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f589d",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 157
  },
  "hsl": {
    "h": 246.087,
    "s": 28.163,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49912,
    "c": 0.10784,
    "h": 286.4
  },
  "luminance": 0.11847
}

Semantic roles & 50–950 ramp

primary
#5F589D
secondary
#B6B997
accent
#C463BB
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #5F589D

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

Preview Lab → · Contrast checker → · Palette generator →

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