#5F51ED#5F51ED

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

Color values

HEX#5F51ED
RGBrgb(95, 81, 237)
HSLhsl(245, 81%, 62%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(59.9%, 65.8%, 0%, 7.1%)
CIE-LABlab(44.84, 49.06, -76.82)
CIE-LCHlch(44.84, 91.15, 302.56°)
OKLaboklab(54.52% 0.0387 -0.2213)
OKLCHoklch(54.52% 0.225 279.9)
XYZxyz(22.9430, 14.4305, 81.6807)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F51ED #DFED51
analogous
#5191ED #5F51ED #AD51ED
triadic
#5F51ED #ED5F51 #51ED5F
tetradic
#5F51ED #ED5191 #DFED51 #51EDAD
square
#5F51ED #ED5191 #DFED51 #51EDAD
split-complementary
#5F51ED #EDAD51 #91ED51
monochromatic
#2112B1 #2C1AE7 #5F51ED #9288F3 #C5C0F8

Accessibility & contrast

On white

5.40
#5F51ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5F51ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F51ED
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F51ED#FFFFFF#000000##FFFFFF
##5F51ED1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F2
Deuteranopia (green-blind)
#0064EA
Tritanopia (blue-blind)
#007998
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f51ed;
/* rgb */ color: rgb(95, 81, 237);
/* oklch */ color: oklch(54.5% 0.225 279.9);
Tailwind
colors: {
  custom: {
    50: '#9b83f4',
    500: '#5f51ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f51ed;
$custom-light: #9b83f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f51ed",
  "rgb": {
    "r": 95,
    "g": 81,
    "b": 237
  },
  "hsl": {
    "h": 245.385,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54524,
    "c": 0.22467,
    "h": 279.9
  },
  "luminance": 0.14432
}

Semantic roles & 50–950 ramp

primary
#5F51ED
secondary
#E4E9B0
accent
#DE08CA
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F51ED

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

Preview Lab → · Contrast checker → · Palette generator →

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