#5F54CC#5F54CC

#5F54CC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.4% C 0.179 H 282.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5F54CC
RGBrgb(95, 84, 204)
HSLhsl(246, 54%, 56%)
HSVhsv(246, 59%, 80%)
CMYKcmyk(53.4%, 58.8%, 0%, 20%)
CIE-LABlab(42.96, 37.10, -61.08)
CIE-LCHlch(42.96, 71.47, 301.28°)
OKLaboklab(52.36% 0.0385 -0.175)
OKLCHoklch(52.36% 0.179 282.4)
XYZxyz(18.7854, 13.1321, 58.6599)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54CC #C1CC54
analogous
#5485CC #5F54CC #9B54CC
triadic
#5F54CC #CC5F54 #54CC5F
tetradic
#5F54CC #CC5485 #C1CC54 #54CC9B
square
#5F54CC #CC5485 #C1CC54 #54CC9B
split-complementary
#5F54CC #CC9B54 #85CC54
monochromatic
#2E2680 #3F34AF #5F54CC #8B83DA #B7B2E8

Accessibility & contrast

On white

5.79
#5F54CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5F54CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54CC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54CC#FFFFFF#000000##FFFFFF
##5F54CC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#2F7088
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f54cc;
/* rgb */ color: rgb(95, 84, 204);
/* oklch */ color: oklch(52.4% 0.179 282.4);
Tailwind
colors: {
  custom: {
    50: '#9584dc',
    500: '#5f54cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f54cc;
$custom-light: #9584dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54cc",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 245.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52356,
    "c": 0.17923,
    "h": 282.4
  },
  "luminance": 0.13133
}

Semantic roles & 50–950 ramp

primary
#5F54CC
secondary
#D2D7A5
accent
#DD4AD0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5F54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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