#5F56AF#5F56AF

#5F56AF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.137 H 285.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5F56AF
RGBrgb(95, 86, 175)
HSLhsl(246, 36%, 51%)
HSVhsv(246, 51%, 69%)
CMYKcmyk(45.7%, 50.9%, 0%, 31.4%)
CIE-LABlab(41.51, 26.95, -46.52)
CIE-LCHlch(41.51, 53.77, 300.09°)
OKLaboklab(50.65% 0.0354 -0.1322)
OKLCHoklch(50.65% 0.137 285)
XYZxyz(15.7827, 12.1829, 42.0691)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56AF #A6AF56
analogous
#5679AF #5F56AF #8B56AF
triadic
#5F56AF #AF5F56 #56AF5F
tetradic
#5F56AF #AF5679 #A6AF56 #56AF8B
square
#5F56AF #AF5679 #A6AF56 #56AF8B
split-complementary
#5F56AF #AF8B56 #79AF56
monochromatic
#322D5E #474088 #5F56AF #8680C3 #AEA9D6

Accessibility & contrast

On white

6.11
#5F56AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5F56AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56AF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56AF#FFFFFF#000000##FFFFFF
##5F56AF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#2B5FAD
Tritanopia (blue-blind)
#45697A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f56af;
/* rgb */ color: rgb(95, 86, 175);
/* oklch */ color: oklch(50.7% 0.137 285.0);
Tailwind
colors: {
  custom: {
    50: '#9185c7',
    500: '#5f56af',
    950: '#000000',
  },
}
SCSS
$custom: #5f56af;
$custom-light: #9185c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56af",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 246.067,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50655,
    "c": 0.13689,
    "h": 285
  },
  "luminance": 0.12184
}

Semantic roles & 50–950 ramp

primary
#5F56AF
secondary
#C0C49D
accent
#CC5CC0
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82

Preview Lab

Preview with #5F56AF

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

Preview Lab → · Contrast checker → · Palette generator →

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