#5F56E8#5F56E8

#5F56E8 is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.9% C 0.213 H 279.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5F56E8
RGBrgb(95, 86, 232)
HSLhsl(244, 76%, 62%)
HSVhsv(244, 63%, 91%)
CMYKcmyk(59.1%, 62.9%, 0%, 9%)
CIE-LABlab(45.51, 44.65, -72.91)
CIE-LCHlch(45.51, 85.49, 301.48°)
OKLaboklab(54.89% 0.0351 -0.2098)
OKLCHoklch(54.89% 0.213 279.5)
XYZxyz(22.6080, 14.9130, 78.0154)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56E8 #DFE856
analogous
#5696E8 #5F56E8 #A856E8
triadic
#5F56E8 #E85F56 #56E85F
tetradic
#5F56E8 #E85696 #DFE856 #56E8A8
square
#5F56E8 #E85696 #DFE856 #56E8A8
split-complementary
#5F56E8 #E8A856 #96E856
monochromatic
#2117AC #2C20E1 #5F56E8 #928CEF #C5C2F7

Accessibility & contrast

On white

5.27
#5F56E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5F56E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56E8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56E8#FFFFFF#000000##FFFFFF
##5F56E81.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#0066E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f56e8;
/* rgb */ color: rgb(95, 86, 232);
/* oklch */ color: oklch(54.9% 0.213 279.5);
Tailwind
colors: {
  custom: {
    50: '#9986f0',
    500: '#5f56e8',
    950: '#000000',
  },
}
SCSS
$custom: #5f56e8;
$custom-light: #9986f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56e8",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 243.699,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54886,
    "c": 0.21272,
    "h": 279.5
  },
  "luminance": 0.14915
}

Semantic roles & 50–950 ramp

primary
#5F56E8
secondary
#E4E8B2
accent
#D80DCC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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