#5F51EB#5F51EB

#5F51EB is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.4% C 0.222 H 280.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F51EB
RGBrgb(95, 81, 235)
HSLhsl(245, 79%, 62%)
HSVhsv(245, 66%, 92%)
CMYKcmyk(59.6%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.68, 48.45, -75.96)
CIE-LCHlch(44.68, 90.10, 302.53°)
OKLaboklab(54.36% 0.039 -0.2188)
OKLCHoklch(54.36% 0.222 280.1)
XYZxyz(22.6524, 14.3143, 80.1504)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51EB #DDEB51
analogous
#5190EB #5F51EB #AC51EB
triadic
#5F51EB #EB5F51 #51EB5F
tetradic
#5F51EB #EB5190 #DDEB51 #51EBAC
square
#5F51EB #EB5190 #DDEB51 #51EBAC
split-complementary
#5F51EB #EBAC51 #90EB51
monochromatic
#2214AE #2D1AE5 #5F51EB #9188F1 #C4BFF8

Accessibility & contrast

On white

5.44
#5F51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5F51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51EB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51EB#FFFFFF#000000##FFFFFF
##5F51EB1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f51eb;
/* rgb */ color: rgb(95, 81, 235);
/* oklch */ color: oklch(54.4% 0.222 280.1);
Tailwind
colors: {
  custom: {
    50: '#9a83f3',
    500: '#5f51eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f51eb;
$custom-light: #9a83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51eb",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 245.455,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.22222,
    "h": 280.1
  },
  "luminance": 0.14316
}

Semantic roles & 50–950 ramp

primary
#5F51EB
secondary
#E3E8B0
accent
#DC0AC9
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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