#5F54E8#5F54E8

#5F54E8 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.6% C 0.215 H 279.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F54E8
RGBrgb(95, 84, 232)
HSLhsl(244, 76%, 62%)
HSVhsv(244, 64%, 91%)
CMYKcmyk(59.1%, 63.8%, 0%, 9%)
CIE-LABlab(45.08, 45.81, -73.62)
CIE-LCHlch(45.08, 86.70, 301.89°)
OKLaboklab(54.57% 0.0368 -0.2119)
OKLCHoklch(54.57% 0.215 279.9)
XYZxyz(22.4505, 14.5981, 77.9630)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54E8 #DDE854
analogous
#5493E8 #5F54E8 #A954E8
triadic
#5F54E8 #E85F54 #54E85F
tetradic
#5F54E8 #E85493 #DDE854 #54E8A9
square
#5F54E8 #E85493 #DDE854 #54E8A9
split-complementary
#5F54E8 #E8A954 #93E854
monochromatic
#2217AB #2D1EE1 #5F54E8 #918AEF #C4C0F7

Accessibility & contrast

On white

5.36
#5F54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5F54E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54E8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54E8#FFFFFF#000000##FFFFFF
##5F54E81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0065E5
Tritanopia (blue-blind)
#007996
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f54e8;
/* rgb */ color: rgb(95, 84, 232);
/* oklch */ color: oklch(54.6% 0.215 279.9);
Tailwind
colors: {
  custom: {
    50: '#9985f0',
    500: '#5f54e8',
    950: '#000000',
  },
}
SCSS
$custom: #5f54e8;
$custom-light: #9985f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54e8",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 244.459,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.21507,
    "h": 279.9
  },
  "luminance": 0.146
}

Semantic roles & 50–950 ramp

primary
#5F54E8
secondary
#E3E7B1
accent
#D80DC9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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