#5F6AAA#5F6AAA

#5F6AAA is a mid, moderate blue. Relative luminance 0.156; OKLCH L 54.4% C 0.101 H 275.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5F6AAA
RGBrgb(95, 106, 170)
HSLhsl(231, 31%, 52%)
HSVhsv(231, 44%, 67%)
CMYKcmyk(44.1%, 37.6%, 0%, 33.3%)
CIE-LABlab(46.50, 13.01, -35.64)
CIE-LCHlch(46.50, 37.94, 290.05°)
OKLaboklab(54.36% 0.009 -0.1003)
OKLCHoklch(54.36% 0.101 275.1)
XYZxyz(17.1268, 15.6424, 40.1393)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6AAA #AA9F5F
analogous
#5F90AA #5F6AAA #7A5FAA
triadic
#5F6AAA #AA5F6A #6AAA5F
tetradic
#5F6AAA #AA5F90 #AA9F5F #5FAA7A
square
#5F6AAA #AA5F90 #AA9F5F #5FAA7A
split-complementary
#5F6AAA #AA7A5F #90AA5F
monochromatic
#31385D #475085 #5F6AAA #878FBF #AFB4D4

Accessibility & contrast

On white

5.09
#5F6AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5F6AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6AAA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6AAA#FFFFFF#000000##FFFFFF
##5F6AAA1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5371AD
Deuteranopia (green-blind)
#4D6BA9
Tritanopia (blue-blind)
#467782
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f6aaa;
/* rgb */ color: rgb(95, 106, 170);
/* oklch */ color: oklch(54.4% 0.101 275.1);
Tailwind
colors: {
  custom: {
    50: '#9094c3',
    500: '#5f6aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f6aaa;
$custom-light: #9094c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6aaa",
  "rgb": {
    "r": 95,
    "g": 106,
    "b": 170
  },
  "hsl": {
    "h": 231.2,
    "s": 30.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54361,
    "c": 0.10072,
    "h": 275.1
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#5F6AAA
secondary
#C3BEA2
accent
#B861C7
background
#F9F9FC
surface
#F1F1F8
border
#CBCBD1
text
#0D0D12
muted
#7E7E81

Preview Lab

Preview with #5F6AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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