#5F56D2#5F56D2

#5F56D2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.2% C 0.185 H 281.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5F56D2
RGBrgb(95, 86, 210)
HSLhsl(244, 58%, 58%)
HSVhsv(244, 59%, 82%)
CMYKcmyk(54.8%, 59%, 0%, 17.6%)
CIE-LABlab(43.86, 37.77, -63.08)
CIE-LCHlch(43.86, 73.52, 300.91°)
OKLaboklab(53.15% 0.0363 -0.1809)
OKLCHoklch(53.15% 0.185 281.4)
XYZxyz(19.6764, 13.7404, 62.5756)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56D2 #C9D256
analogous
#568BD2 #5F56D2 #9D56D2
triadic
#5F56D2 #D25F56 #56D25F
tetradic
#5F56D2 #D2568B #C9D256 #56D29D
square
#5F56D2 #D2568B #C9D256 #56D29D
split-complementary
#5F56D2 #D29D56 #8BD256
monochromatic
#2C2589 #3B31B9 #5F56D2 #8D86DF #BBB7EC

Accessibility & contrast

On white

5.60
#5F56D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5F56D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56D2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56D2#FFFFFF#000000##FFFFFF
##5F56D21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#28738C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f56d2;
/* rgb */ color: rgb(95, 86, 210);
/* oklch */ color: oklch(53.2% 0.185 281.4);
Tailwind
colors: {
  custom: {
    50: '#9686e1',
    500: '#5f56d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f56d2;
$custom-light: #9686e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56d2",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 244.355,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53153,
    "c": 0.18452,
    "h": 281.4
  },
  "luminance": 0.13742
}

Semantic roles & 50–950 ramp

primary
#5F56D2
secondary
#D7DBA9
accent
#E147D6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F56D2

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

Preview Lab → · Contrast checker → · Palette generator →

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