#5F54E5#5F54E5

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

Color values

HEX#5F54E5
RGBrgb(95, 84, 229)
HSLhsl(245, 74%, 61%)
HSVhsv(245, 63%, 90%)
CMYKcmyk(58.5%, 63.3%, 0%, 10.2%)
CIE-LABlab(44.84, 44.87, -72.31)
CIE-LCHlch(44.84, 85.10, 301.82°)
OKLaboklab(54.32% 0.0371 -0.208)
OKLCHoklch(54.32% 0.211 280.1)
XYZxyz(22.0280, 14.4291, 75.7379)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54E5 #DAE554
analogous
#5492E5 #5F54E5 #A854E5
triadic
#5F54E5 #E55F54 #54E55F
tetradic
#5F54E5 #E55492 #DAE554 #54E5A8
square
#5F54E5 #E55492 #DAE554 #54E5A8
split-complementary
#5F54E5 #E5A854 #92E554
monochromatic
#2419A5 #2F21DB #5F54E5 #9189ED #C2BEF5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F54E5#FFFFFF#000000##FFFFFF
##5F54E51.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)
#0070EA
Deuteranopia (green-blind)
#0065E2
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f54e5;
/* rgb */ color: rgb(95, 84, 229);
/* oklch */ color: oklch(54.3% 0.211 280.1);
Tailwind
colors: {
  custom: {
    50: '#9985ee',
    500: '#5f54e5',
    950: '#000000',
  },
}
SCSS
$custom: #5f54e5;
$custom-light: #9985ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54e5",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 244.552,
    "s": 73.604,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54323,
    "c": 0.21133,
    "h": 280.1
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#5F54E5
secondary
#E1E6AF
accent
#D610C7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54E5

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

Preview Lab → · Contrast checker → · Palette generator →

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