#5F5BF4#5F5BF4

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

Color values

HEX#5F5BF4
RGBrgb(95, 91, 244)
HSLhsl(242, 87%, 66%)
HSVhsv(242, 63%, 96%)
CMYKcmyk(61.1%, 62.7%, 0%, 4.3%)
CIE-LABlab(47.55, 45.50, -76.33)
CIE-LCHlch(47.55, 88.86, 300.80°)
OKLaboklab(56.67% 0.03 -0.2198)
OKLCHoklch(56.67% 0.222 277.8)
XYZxyz(24.7843, 16.4448, 87.4385)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BF4 #F0F45B
analogous
#5BA3F4 #5F5BF4 #AC5BF4
triadic
#5F5BF4 #F45F5B #5BF45F
tetradic
#5F5BF4 #F45BA3 #F0F45B #5BF4AC
square
#5F5BF4 #F45BA3 #F0F45B #5BF4AC
split-complementary
#5F5BF4 #F4AC5B #A3F45B
monochromatic
#120DC7 #2722F0 #5F5BF4 #9794F8 #CFCEFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F5BF4#FFFFFF#000000##FFFFFF
##5F5BF41.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)
#0077F9
Deuteranopia (green-blind)
#006AF1
Tritanopia (blue-blind)
#00829F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f5bf4;
/* rgb */ color: rgb(95, 91, 244);
/* oklch */ color: oklch(56.7% 0.222 277.8);
Tailwind
colors: {
  custom: {
    50: '#9b8af9',
    500: '#5f5bf4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bf4;
$custom-light: #9b8af9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bf4",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 244
  },
  "hsl": {
    "h": 241.569,
    "s": 87.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.56665,
    "c": 0.22186,
    "h": 277.8
  },
  "luminance": 0.16447
}

Semantic roles & 50–950 ramp

primary
#5F5BF4
secondary
#EEEFBC
accent
#E402DE
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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