#5F5CF1#5F5CF1

#5F5CF1 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.6% C 0.217 H 277.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5F5CF1
RGBrgb(95, 92, 241)
HSLhsl(241, 84%, 65%)
HSVhsv(241, 62%, 95%)
CMYKcmyk(60.6%, 61.8%, 0%, 5.5%)
CIE-LABlab(47.54, 43.97, -74.66)
CIE-LCHlch(47.54, 86.65, 300.49°)
OKLaboklab(56.58% 0.0294 -0.2149)
OKLCHoklch(56.58% 0.217 277.8)
XYZxyz(24.4185, 16.4362, 85.0878)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5CF1 #EEF15C
analogous
#5CA3F1 #5F5CF1 #A95CF1
triadic
#5F5CF1 #F15F5C #5CF15F
tetradic
#5F5CF1 #F15CA3 #EEF15C #5CF1A9
square
#5F5CF1 #F15CA3 #EEF15C #5CF1A9
split-complementary
#5F5CF1 #F1A95C #A3F15C
monochromatic
#1411C2 #2824EC #5F5CF1 #9694F6 #CECDFB

Accessibility & contrast

On white

4.90
#5F5CF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5F5CF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5CF1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5CF1#FFFFFF#000000##FFFFFF
##5F5CF11.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F6
Deuteranopia (green-blind)
#006BEE
Tritanopia (blue-blind)
#00819E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f5cf1;
/* rgb */ color: rgb(95, 92, 241);
/* oklch */ color: oklch(56.6% 0.217 277.8);
Tailwind
colors: {
  custom: {
    50: '#9a8af7',
    500: '#5f5cf1',
    950: '#000000',
  },
}
SCSS
$custom: #5f5cf1;
$custom-light: #9a8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5cf1",
  "rgb": {
    "r": 95,
    "g": 92,
    "b": 241
  },
  "hsl": {
    "h": 241.208,
    "s": 84.181,
    "l": 65.294
  },
  "oklch": {
    "l": 0.56585,
    "c": 0.21693,
    "h": 277.8
  },
  "luminance": 0.16438
}

Semantic roles & 50–950 ramp

primary
#5F5CF1
secondary
#ECEEBB
accent
#E105DC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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