#5F54DB#5F54DB

#5F54DB is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.5% C 0.199 H 281.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5F54DB
RGBrgb(95, 84, 219)
HSLhsl(245, 65%, 59%)
HSVhsv(245, 62%, 86%)
CMYKcmyk(56.6%, 61.6%, 0%, 14.1%)
CIE-LABlab(44.07, 41.77, -67.88)
CIE-LCHlch(44.07, 79.70, 301.60°)
OKLaboklab(53.52% 0.0378 -0.195)
OKLCHoklch(53.52% 0.199 281)
XYZxyz(20.6718, 13.8867, 68.5952)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54DB #D0DB54
analogous
#548DDB #5F54DB #A354DB
triadic
#5F54DB #DB5F54 #54DB5F
tetradic
#5F54DB #DB548D #D0DB54 #54DBA3
square
#5F54DB #DB548D #D0DB54 #54DBA3
split-complementary
#5F54DB #DBA354 #8DDB54
monochromatic
#291F95 #372AC8 #5F54DB #8E87E6 #BEB9F0

Accessibility & contrast

On white

5.56
#5F54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5F54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54DB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54DB#FFFFFF#000000##FFFFFF
##5F54DB1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0063D8
Tritanopia (blue-blind)
#1A7590
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5f54db;
/* rgb */ color: rgb(95, 84, 219);
/* oklch */ color: oklch(53.5% 0.199 281.0);
Tailwind
colors: {
  custom: {
    50: '#9785e7',
    500: '#5f54db',
    950: '#000000',
  },
}
SCSS
$custom: #5f54db;
$custom-light: #9785e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54db",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 244.889,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53518,
    "c": 0.19869,
    "h": 281
  },
  "luminance": 0.13888
}

Semantic roles & 50–950 ramp

primary
#5F54DB
secondary
#DBE0AB
accent
#E840DA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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