#5F51EE#5F51EE

#5F51EE is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.6% C 0.226 H 279.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5F51EE
RGBrgb(95, 81, 238)
HSLhsl(245, 82%, 63%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(60.1%, 66%, 0%, 6.7%)
CIE-LABlab(44.93, 49.37, -77.25)
CIE-LCHlch(44.93, 91.68, 302.58°)
OKLaboklab(54.61% 0.0386 -0.2226)
OKLCHoklch(54.61% 0.226 279.8)
XYZxyz(23.0895, 14.4891, 82.4523)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51EE #E0EE51
analogous
#5192EE #5F51EE #AD51EE
triadic
#5F51EE #EE5F51 #51EE5F
tetradic
#5F51EE #EE5192 #E0EE51 #51EEAD
square
#5F51EE #EE5192 #E0EE51 #51EEAD
split-complementary
#5F51EE #EEAD51 #92EE51
monochromatic
#2011B3 #2C19E9 #5F51EE #9289F3 #C6C1F9

Accessibility & contrast

On white

5.39
#5F51EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5F51EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51EE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51EE#FFFFFF#000000##FFFFFF
##5F51EE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F3
Deuteranopia (green-blind)
#0064EB
Tritanopia (blue-blind)
#007A99
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f51ee;
/* rgb */ color: rgb(95, 81, 238);
/* oklch */ color: oklch(54.6% 0.226 279.8);
Tailwind
colors: {
  custom: {
    50: '#9b83f5',
    500: '#5f51ee',
    950: '#000000',
  },
}
SCSS
$custom: #5f51ee;
$custom-light: #9b83f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51ee",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 245.35,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54608,
    "c": 0.22589,
    "h": 279.8
  },
  "luminance": 0.14491
}

Semantic roles & 50–950 ramp

primary
#5F51EE
secondary
#E5EAB1
accent
#DF07CB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F51EE

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

Preview Lab → · Contrast checker → · Palette generator →

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