#5F54BE#5F54BE

#5F54BE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.3% C 0.161 H 283.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F54BE
RGBrgb(95, 84, 190)
HSLhsl(246, 45%, 54%)
HSVhsv(246, 56%, 75%)
CMYKcmyk(50%, 55.8%, 0%, 25.5%)
CIE-LABlab(41.99, 32.77, -54.54)
CIE-LCHlch(41.99, 63.63, 301.00°)
OKLaboklab(51.32% 0.0386 -0.1558)
OKLCHoklch(51.32% 0.161 283.9)
XYZxyz(17.1811, 12.4904, 50.2108)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54BE #B3BE54
analogous
#547EBE #5F54BE #9454BE
triadic
#5F54BE #BE5F54 #54BE5F
tetradic
#5F54BE #BE547E #B3BE54 #54BE94
square
#5F54BE #BE547E #B3BE54 #54BE94
split-complementary
#5F54BE #BE9454 #7EBE54
monochromatic
#312A6E #453B9A #5F54BE #8880CF #B2ADE0

Accessibility & contrast

On white

6.00
#5F54BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5F54BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54BE
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54BE#FFFFFF#000000##FFFFFF
##5F54BE1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1066C2
Deuteranopia (green-blind)
#0360BC
Tritanopia (blue-blind)
#3C6C81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f54be;
/* rgb */ color: rgb(95, 84, 190);
/* oklch */ color: oklch(51.3% 0.161 283.9);
Tailwind
colors: {
  custom: {
    50: '#9384d2',
    500: '#5f54be',
    950: '#000000',
  },
}
SCSS
$custom: #5f54be;
$custom-light: #9384d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54be",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 246.226,
    "s": 44.915,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51324,
    "c": 0.16052,
    "h": 283.9
  },
  "luminance": 0.12491
}

Semantic roles & 50–950 ramp

primary
#5F54BE
secondary
#C9CEA0
accent
#D553C7
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #5F54BE

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

Preview Lab → · Contrast checker → · Palette generator →

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