#5F54E9#5F54E9

#5F54E9 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.7% C 0.216 H 279.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5F54E9
RGBrgb(95, 84, 233)
HSLhsl(244, 77%, 62%)
HSVhsv(244, 64%, 91%)
CMYKcmyk(59.2%, 63.9%, 0%, 8.6%)
CIE-LABlab(45.16, 46.12, -74.05)
CIE-LCHlch(45.16, 87.24, 301.91°)
OKLaboklab(54.65% 0.0367 -0.2132)
OKLCHoklch(54.65% 0.216 279.8)
XYZxyz(22.5930, 14.6551, 78.7132)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54E9 #DEE954
analogous
#5493E9 #5F54E9 #AA54E9
triadic
#5F54E9 #E95F54 #54E95F
tetradic
#5F54E9 #E95493 #DEE954 #54E9AA
square
#5F54E9 #E95493 #DEE954 #54E9AA
split-complementary
#5F54E9 #E9AA54 #93E954
monochromatic
#2116AC #2C1EE2 #5F54E9 #928AF0 #C4C0F7

Accessibility & contrast

On white

5.34
#5F54E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5F54E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54E9
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54E9#FFFFFF#000000##FFFFFF
##5F54E91.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EE
Deuteranopia (green-blind)
#0065E6
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f54e9;
/* rgb */ color: rgb(95, 84, 233);
/* oklch */ color: oklch(54.7% 0.216 279.8);
Tailwind
colors: {
  custom: {
    50: '#9a85f1',
    500: '#5f54e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f54e9;
$custom-light: #9a85f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54e9",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 233
  },
  "hsl": {
    "h": 244.43,
    "s": 77.202,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54651,
    "c": 0.21631,
    "h": 279.8
  },
  "luminance": 0.14657
}

Semantic roles & 50–950 ramp

primary
#5F54E9
secondary
#E4E8B1
accent
#D90CCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54E9

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

Preview Lab → · Contrast checker → · Palette generator →

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