#5F5A82#5F5A82

#5F5A82 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.9% C 0.064 H 289.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5F5A82
RGBrgb(95, 90, 130)
HSLhsl(248, 18%, 43%)
HSVhsv(248, 31%, 51%)
CMYKcmyk(26.9%, 30.8%, 0%, 49%)
CIE-LABlab(40.17, 11.48, -21.66)
CIE-LCHlch(40.17, 24.51, 297.93°)
OKLaboklab(48.87% 0.0213 -0.0599)
OKLCHoklch(48.87% 0.064 289.6)
XYZxyz(12.4037, 11.3567, 22.6533)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5A82 #7D825A
analogous
#5A6982 #5F5A82 #735A82
triadic
#5F5A82 #825F5A #5A825F
tetradic
#5F5A82 #825A69 #7D825A #5A8273
square
#5F5A82 #825A69 #7D825A #5A8273
split-complementary
#5F5A82 #82735A #69825A
monochromatic
#2A283A #45415E #5F5A82 #7D78A1 #A09CBA

Accessibility & contrast

On white

6.42
#5F5A82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F5A82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5A82
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5A82#FFFFFF#000000##FFFFFF
##5F5A821.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505F84
Deuteranopia (green-blind)
#4F5E81
Tritanopia (blue-blind)
#576168
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f5a82;
/* rgb */ color: rgb(95, 90, 130);
/* oklch */ color: oklch(48.9% 0.064 289.6);
Tailwind
colors: {
  custom: {
    50: '#8d88a6',
    500: '#5f5a82',
    950: '#000000',
  },
}
SCSS
$custom: #5f5a82;
$custom-light: #8d88a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5a82",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 130
  },
  "hsl": {
    "h": 247.5,
    "s": 18.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48866,
    "c": 0.06359,
    "h": 289.6
  },
  "luminance": 0.11357
}

Semantic roles & 50–950 ramp

primary
#5F5A82
secondary
#A5A98F
accent
#BB6DB1
background
#F8F8FA
surface
#F0EFF4
border
#CBCACE
text
#0C0B0F
muted
#7D7C7F

Preview Lab

Preview with #5F5A82

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

Preview Lab → · Contrast checker → · Palette generator →

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