#5F54F0#5F54F0

#5F54F0 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.2% C 0.225 H 279.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#5F54F0
RGBrgb(95, 84, 240)
HSLhsl(244, 84%, 64%)
HSVhsv(244, 65%, 94%)
CMYKcmyk(60.4%, 65%, 0%, 5.9%)
CIE-LABlab(45.72, 48.28, -77.08)
CIE-LCHlch(45.72, 90.95, 302.07°)
OKLaboklab(55.23% 0.036 -0.222)
OKLCHoklch(55.23% 0.225 279.2)
XYZxyz(23.6128, 15.0630, 84.0843)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F54F0 #E5F054
analogous
#5497F0 #5F54F0 #AD54F0
triadic
#5F54F0 #F05F54 #54F05F
tetradic
#5F54F0 #F05497 #E5F054 #54F0AD
square
#5F54F0 #F05497 #E5F054 #54F0AD
split-complementary
#5F54F0 #F0AD54 #97F054
monochromatic
#1C10B9 #2A1CEB #5F54F0 #948CF5 #C8C5FA

Accessibility & contrast

On white

5.23
#5F54F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5F54F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F54F0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F54F0#FFFFFF#000000##FFFFFF
##5F54F01.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F5
Deuteranopia (green-blind)
#0066ED
Tritanopia (blue-blind)
#007C9B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f54f0;
/* rgb */ color: rgb(95, 84, 240);
/* oklch */ color: oklch(55.2% 0.225 279.2);
Tailwind
colors: {
  custom: {
    50: '#9b85f6',
    500: '#5f54f0',
    950: '#000000',
  },
}
SCSS
$custom: #5f54f0;
$custom-light: #9b85f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f54f0",
  "rgb": {
    "r": 95,
    "g": 84,
    "b": 240
  },
  "hsl": {
    "h": 244.231,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.22494,
    "h": 279.2
  },
  "luminance": 0.15065
}

Semantic roles & 50–950 ramp

primary
#5F54F0
secondary
#E8ECB4
accent
#E005D1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F54F0

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

Preview Lab → · Contrast checker → · Palette generator →

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