#5F56EB#5F56EB

#5F56EB is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.1% C 0.216 H 279.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5F56EB
RGBrgb(95, 86, 235)
HSLhsl(244, 79%, 63%)
HSVhsv(244, 63%, 92%)
CMYKcmyk(59.6%, 63.4%, 0%, 7.8%)
CIE-LABlab(45.75, 45.58, -74.21)
CIE-LCHlch(45.75, 87.09, 301.56°)
OKLaboklab(55.13% 0.0349 -0.2136)
OKLCHoklch(55.13% 0.216 279.3)
XYZxyz(23.0377, 15.0849, 80.2788)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F56EB #E2EB56
analogous
#5697EB #5F56EB #A956EB
triadic
#5F56EB #EB5F56 #56EB5F
tetradic
#5F56EB #EB5697 #E2EB56 #56EBA9
square
#5F56EB #EB5697 #E2EB56 #56EBA9
split-complementary
#5F56EB #EBA956 #97EB56
monochromatic
#1E15B2 #2B1FE5 #5F56EB #938DF1 #C7C3F8

Accessibility & contrast

On white

5.23
#5F56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5F56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F56EB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F56EB#FFFFFF#000000##FFFFFF
##5F56EB1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0066E8
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f56eb;
/* rgb */ color: rgb(95, 86, 235);
/* oklch */ color: oklch(55.1% 0.216 279.3);
Tailwind
colors: {
  custom: {
    50: '#9a86f2',
    500: '#5f56eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f56eb;
$custom-light: #9a86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f56eb",
  "rgb": {
    "r": 95,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 243.624,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55131,
    "c": 0.21647,
    "h": 279.3
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#5F56EB
secondary
#E6E9B4
accent
#DB0ACF
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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