#5F56E3#5F56E3

#5F56E3 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.206 H 279.9°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5F56E3
RGBrgb(95, 86, 227)
HSLhsl(244, 72%, 61%)
HSVhsv(244, 62%, 89%)
CMYKcmyk(58.1%, 62.1%, 0%, 11%)
CIE-LABlab(45.13, 43.09, -70.71)
CIE-LCHlch(45.13, 82.80, 301.36°)
OKLaboklab(54.48% 0.0355 -0.2033)
OKLCHoklch(54.48% 0.206 279.9)
XYZxyz(21.9079, 14.6330, 74.3282)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56E3 #DAE356
analogous
#5694E3 #5F56E3 #A656E3
triadic
#5F56E3 #E35F56 #56E35F
tetradic
#5F56E3 #E35694 #DAE356 #56E3A6
square
#5F56E3 #E35694 #DAE356 #56E3A6
split-complementary
#5F56E3 #E3A656 #94E356
monochromatic
#241BA4 #2F24D8 #5F56E3 #918BEC #C2BFF4

Accessibility & contrast

On white

5.35
#5F56E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5F56E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56E3
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56E3#FFFFFF#000000##FFFFFF
##5F56E31.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#0065E0
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f56e3;
/* rgb */ color: rgb(95, 86, 227);
/* oklch */ color: oklch(54.5% 0.206 279.9);
Tailwind
colors: {
  custom: {
    50: '#9986ed',
    500: '#5f56e3',
    950: '#000000',
  },
}
SCSS
$custom: #5f56e3;
$custom-light: #9986ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56e3",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 243.83,
    "s": 71.574,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54483,
    "c": 0.20643,
    "h": 279.9
  },
  "luminance": 0.14635
}

Semantic roles & 50–950 ramp

primary
#5F56E3
secondary
#E1E5B0
accent
#D412C7
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F56E3

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

Preview Lab → · Contrast checker → · Palette generator →

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