#5F54BC#5F54BC

#5F54BC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.2% C 0.158 H 284.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5F54BC
RGBrgb(95, 84, 188)
HSLhsl(246, 44%, 53%)
HSVhsv(246, 55%, 74%)
CMYKcmyk(49.5%, 55.3%, 0%, 26.3%)
CIE-LABlab(41.85, 32.16, -53.59)
CIE-LCHlch(41.85, 62.50, 300.97°)
OKLaboklab(51.18% 0.0385 -0.153)
OKLCHoklch(51.18% 0.158 284.1)
XYZxyz(16.9640, 12.4035, 49.0675)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54BC #B1BC54
analogous
#547DBC #5F54BC #9354BC
triadic
#5F54BC #BC5F54 #54BC5F
tetradic
#5F54BC #BC547D #B1BC54 #54BC93
square
#5F54BC #BC547D #B1BC54 #54BC93
split-complementary
#5F54BC #BC9354 #7DBC54
monochromatic
#312A6B #453B97 #5F54BC #8880CD #B1ACDE

Accessibility & contrast

On white

6.03
#5F54BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F54BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54BC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54BC#FFFFFF#000000##FFFFFF
##5F54BC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1566C0
Deuteranopia (green-blind)
#0C5FBA
Tritanopia (blue-blind)
#3D6B80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f54bc;
/* rgb */ color: rgb(95, 84, 188);
/* oklch */ color: oklch(51.2% 0.158 284.1);
Tailwind
colors: {
  custom: {
    50: '#9384d1',
    500: '#5f54bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f54bc;
$custom-light: #9384d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54bc",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 246.346,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51181,
    "c": 0.15779,
    "h": 284.1
  },
  "luminance": 0.12404
}

Semantic roles & 50–950 ramp

primary
#5F54BC
secondary
#C8CCA0
accent
#D354C6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #5F54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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