#5F5FAC#5F5FAC

#5F5FAC is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.2% C 0.119 H 281.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5F5FAC
RGBrgb(95, 95, 172)
HSLhsl(240, 32%, 52%)
HSVhsv(240, 45%, 67%)
CMYKcmyk(44.8%, 44.8%, 0%, 32.5%)
CIE-LABlab(43.65, 20.44, -41.34)
CIE-LCHlch(43.65, 46.12, 296.31°)
OKLaboklab(52.21% 0.0237 -0.117)
OKLCHoklch(52.21% 0.119 281.4)
XYZxyz(16.2557, 13.5951, 40.7893)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FAC #ACAC5F
analogous
#5F86AC #5F5FAC #865FAC
triadic
#5F5FAC #AC5F5F #5FAC5F
tetradic
#5F5FAC #AC5F86 #ACAC5F #5FAC86
square
#5F5FAC #AC5F86 #ACAC5F #5FAC86
split-complementary
#5F5FAC #AC865F #86AC5F
monochromatic
#31315F #464688 #5F5FAC #8787C1 #B0B0D6

Accessibility & contrast

On white

5.65
#5F5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5F5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FAC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FAC#FFFFFF#000000##FFFFFF
##5F5FAC1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416AAF
Deuteranopia (green-blind)
#3D64AA
Tritanopia (blue-blind)
#466F7D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f5fac;
/* rgb */ color: rgb(95, 95, 172);
/* oklch */ color: oklch(52.2% 0.119 281.4);
Tailwind
colors: {
  custom: {
    50: '#908cc5',
    500: '#5f5fac',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fac;
$custom-light: #908cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fac",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52214,
    "c": 0.11935,
    "h": 281.4
  },
  "luminance": 0.13596
}

Semantic roles & 50–950 ramp

primary
#5F5FAC
secondary
#C4C4A3
accent
#C860C8
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0C13
muted
#7E7D82

Preview Lab

Preview with #5F5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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