#5F54BD#5F54BD

#5F54BD is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.159 H 284.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5F54BD
RGBrgb(95, 84, 189)
HSLhsl(246, 44%, 54%)
HSVhsv(246, 56%, 74%)
CMYKcmyk(49.7%, 55.6%, 0%, 25.9%)
CIE-LABlab(41.92, 32.47, -54.07)
CIE-LCHlch(41.92, 63.07, 300.98°)
OKLaboklab(51.25% 0.0385 -0.1544)
OKLCHoklch(51.25% 0.159 284)
XYZxyz(17.0722, 12.4468, 49.6372)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54BD #B2BD54
analogous
#547DBD #5F54BD #9354BD
triadic
#5F54BD #BD5F54 #54BD5F
tetradic
#5F54BD #BD547D #B2BD54 #54BD93
square
#5F54BD #BD547D #B2BD54 #54BD93
split-complementary
#5F54BD #BD9354 #7DBD54
monochromatic
#312A6D #453B99 #5F54BD #8880CE #B2ACDF

Accessibility & contrast

On white

6.02
#5F54BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5F54BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54BD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54BD#FFFFFF#000000##FFFFFF
##5F54BD1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1366C1
Deuteranopia (green-blind)
#0860BB
Tritanopia (blue-blind)
#3C6C80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f54bd;
/* rgb */ color: rgb(95, 84, 189);
/* oklch */ color: oklch(51.3% 0.159 284.0);
Tailwind
colors: {
  custom: {
    50: '#9384d2',
    500: '#5f54bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f54bd;
$custom-light: #9384d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54bd",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 246.286,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51253,
    "c": 0.15915,
    "h": 284
  },
  "luminance": 0.12448
}

Semantic roles & 50–950 ramp

primary
#5F54BD
secondary
#C8CDA0
accent
#D454C7
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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