#5F5AAF#5F5AAF

#5F5AAF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.4% C 0.131 H 283.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5F5AAF
RGBrgb(95, 90, 175)
HSLhsl(244, 35%, 52%)
HSVhsv(244, 49%, 69%)
CMYKcmyk(45.7%, 48.6%, 0%, 31.4%)
CIE-LABlab(42.52, 24.47, -44.90)
CIE-LCHlch(42.52, 51.13, 298.59°)
OKLaboklab(51.42% 0.0304 -0.1274)
OKLCHoklch(51.42% 0.131 283.4)
XYZxyz(16.1111, 12.8396, 42.1785)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AAF #AAAF5A
analogous
#5A80AF #5F5AAF #895AAF
triadic
#5F5AAF #AF5F5A #5AAF5F
tetradic
#5F5AAF #AF5A80 #AAAF5A #5AAF89
square
#5F5AAF #AF5A80 #AAAF5A #5AAF89
split-complementary
#5F5AAF #AF895A #80AF5A
monochromatic
#312F60 #474389 #5F5AAF #8783C3 #AFACD7

Accessibility & contrast

On white

5.89
#5F5AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5F5AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AAF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AAF#FFFFFF#000000##FFFFFF
##5F5AAF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#3262AD
Tritanopia (blue-blind)
#456C7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f5aaf;
/* rgb */ color: rgb(95, 90, 175);
/* oklch */ color: oklch(51.4% 0.131 283.4);
Tailwind
colors: {
  custom: {
    50: '#9188c7',
    500: '#5f5aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5f5aaf;
$custom-light: #9188c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5aaf",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 243.529,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51418,
    "c": 0.13102,
    "h": 283.4
  },
  "luminance": 0.1284
}

Semantic roles & 50–950 ramp

primary
#5F5AAF
secondary
#C3C5A0
accent
#CB5DC4
background
#F9F8FC
surface
#F1F0F8
border
#CBCBD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5F5AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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