#5F54F1#5F54F1

#5F54F1 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.3% C 0.226 H 279.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F54F1
RGBrgb(95, 84, 241)
HSLhsl(244, 85%, 64%)
HSVhsv(244, 65%, 95%)
CMYKcmyk(60.6%, 65.1%, 0%, 5.5%)
CIE-LABlab(45.80, 48.59, -77.51)
CIE-LCHlch(45.80, 91.48, 302.09°)
OKLaboklab(55.32% 0.0359 -0.2233)
OKLCHoklch(55.32% 0.226 279.1)
XYZxyz(23.7618, 15.1226, 84.8688)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54F1 #E6F154
analogous
#5497F1 #5F54F1 #AD54F1
triadic
#5F54F1 #F15F54 #54F15F
tetradic
#5F54F1 #F15497 #E6F154 #54F1AD
square
#5F54F1 #F15497 #E6F154 #54F1AD
split-complementary
#5F54F1 #F1AD54 #97F154
monochromatic
#1B0FBB #2A1BEC #5F54F1 #948DF6 #C9C5FA

Accessibility & contrast

On white

5.22
#5F54F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5F54F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54F1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54F1#FFFFFF#000000##FFFFFF
##5F54F11.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F6
Deuteranopia (green-blind)
#0066EE
Tritanopia (blue-blind)
#007D9B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f54f1;
/* rgb */ color: rgb(95, 84, 241);
/* oklch */ color: oklch(55.3% 0.226 279.1);
Tailwind
colors: {
  custom: {
    50: '#9b85f7',
    500: '#5f54f1',
    950: '#000000',
  },
}
SCSS
$custom: #5f54f1;
$custom-light: #9b85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54f1",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 244.204,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55318,
    "c": 0.22617,
    "h": 279.1
  },
  "luminance": 0.15124
}

Semantic roles & 50–950 ramp

primary
#5F54F1
secondary
#E8ECB5
accent
#E104D2
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54F1

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

Preview Lab → · Contrast checker → · Palette generator →

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