#5F56CF#5F56CF

#5F56CF is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.181 H 281.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5F56CF
RGBrgb(95, 86, 207)
HSLhsl(244, 56%, 57%)
HSVhsv(244, 58%, 81%)
CMYKcmyk(54.1%, 58.5%, 0%, 18.8%)
CIE-LABlab(43.64, 36.84, -61.70)
CIE-LCHlch(43.64, 71.86, 300.84°)
OKLaboklab(52.93% 0.0364 -0.1769)
OKLCHoklch(52.93% 0.181 281.6)
XYZxyz(19.3061, 13.5923, 60.6256)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56CF #C6CF56
analogous
#5689CF #5F56CF #9C56CF
triadic
#5F56CF #CF5F56 #56CF5F
tetradic
#5F56CF #CF5689 #C6CF56 #56CF9C
square
#5F56CF #CF5689 #C6CF56 #56CF9C
split-complementary
#5F56CF #CF9C56 #89CF56
monochromatic
#2D2685 #3D33B5 #5F56CF #8C86DD #B9B5EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F56CF#FFFFFF#000000##FFFFFF
##5F56CF1.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)
#006BD3
Deuteranopia (green-blind)
#0063CD
Tritanopia (blue-blind)
#2C728A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f56cf;
/* rgb */ color: rgb(95, 86, 207);
/* oklch */ color: oklch(52.9% 0.181 281.6);
Tailwind
colors: {
  custom: {
    50: '#9686de',
    500: '#5f56cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f56cf;
$custom-light: #9686de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56cf",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 244.463,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52926,
    "c": 0.18058,
    "h": 281.6
  },
  "luminance": 0.13593
}

Semantic roles & 50–950 ramp

primary
#5F56CF
secondary
#D5D9A8
accent
#DF49D4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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