#5F54DA#5F54DA

#5F54DA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 53.4% C 0.197 H 281.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5F54DA
RGBrgb(95, 84, 218)
HSLhsl(245, 64%, 59%)
HSVhsv(245, 61%, 85%)
CMYKcmyk(56.4%, 61.5%, 0%, 14.5%)
CIE-LABlab(43.99, 41.46, -67.44)
CIE-LCHlch(43.99, 79.16, 301.58°)
OKLaboklab(53.44% 0.0379 -0.1937)
OKLCHoklch(53.44% 0.197 281.1)
XYZxyz(20.5406, 13.8342, 67.9040)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54DA #CFDA54
analogous
#548CDA #5F54DA #A254DA
triadic
#5F54DA #DA5F54 #54DA5F
tetradic
#5F54DA #DA548C #CFDA54 #54DAA2
square
#5F54DA #DA548C #CFDA54 #54DAA2
split-complementary
#5F54DA #DAA254 #8CDA54
monochromatic
#292094 #382BC6 #5F54DA #8E86E5 #BDB9F0

Accessibility & contrast

On white

5.57
#5F54DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5F54DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54DA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54DA#FFFFFF#000000##FFFFFF
##5F54DA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#0063D7
Tritanopia (blue-blind)
#1C758F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f54da;
/* rgb */ color: rgb(95, 84, 218);
/* oklch */ color: oklch(53.4% 0.197 281.1);
Tailwind
colors: {
  custom: {
    50: '#9785e6',
    500: '#5f54da',
    950: '#000000',
  },
}
SCSS
$custom: #5f54da;
$custom-light: #9785e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54da",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 244.925,
    "s": 64.423,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53439,
    "c": 0.19741,
    "h": 281.1
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#5F54DA
secondary
#DBDFAB
accent
#E740DA
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F54DA

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

Preview Lab → · Contrast checker → · Palette generator →

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