#5F54CF#5F54CF

#5F54CF is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.6% C 0.183 H 282.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5F54CF
RGBrgb(95, 84, 207)
HSLhsl(245, 56%, 57%)
HSVhsv(245, 59%, 81%)
CMYKcmyk(54.1%, 59.4%, 0%, 18.8%)
CIE-LABlab(43.18, 38.04, -62.46)
CIE-LCHlch(43.18, 73.13, 301.34°)
OKLaboklab(52.58% 0.0384 -0.1791)
OKLCHoklch(52.58% 0.183 282.1)
XYZxyz(19.1487, 13.2774, 60.5732)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54CF #C4CF54
analogous
#5487CF #5F54CF #9D54CF
triadic
#5F54CF #CF5F54 #54CF5F
tetradic
#5F54CF #CF5487 #C4CF54 #54CF9D
square
#5F54CF #CF5487 #C4CF54 #54CF9D
split-complementary
#5F54CF #CF9D54 #87CF54
monochromatic
#2D2584 #3E32B3 #5F54CF #8C84DC #B8B4EA

Accessibility & contrast

On white

5.74
#5F54CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5F54CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54CF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54CF#FFFFFF#000000##FFFFFF
##5F54CF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#2C7189
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5f54cf;
/* rgb */ color: rgb(95, 84, 207);
/* oklch */ color: oklch(52.6% 0.183 282.1);
Tailwind
colors: {
  custom: {
    50: '#9684de',
    500: '#5f54cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f54cf;
$custom-light: #9684de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54cf",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 245.366,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.18317,
    "h": 282.1
  },
  "luminance": 0.13279
}

Semantic roles & 50–950 ramp

primary
#5F54CF
secondary
#D4D8A6
accent
#DF48D2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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