#5F5BF1#5F5BF1

#5F5BF1 is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.4% C 0.218 H 278.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5F5BF1
RGBrgb(95, 91, 241)
HSLhsl(242, 84%, 65%)
HSVhsv(242, 62%, 95%)
CMYKcmyk(60.6%, 62.2%, 0%, 5.5%)
CIE-LABlab(47.32, 44.56, -75.03)
CIE-LCHlch(47.32, 87.26, 300.70°)
OKLaboklab(56.42% 0.0303 -0.216)
OKLCHoklch(56.42% 0.218 278)
XYZxyz(24.3325, 16.2641, 85.0591)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BF1 #EDF15B
analogous
#5BA2F1 #5F5BF1 #AA5BF1
triadic
#5F5BF1 #F15F5B #5BF15F
tetradic
#5F5BF1 #F15BA2 #EDF15B #5BF1AA
square
#5F5BF1 #F15BA2 #EDF15B #5BF1AA
split-complementary
#5F5BF1 #F1AA5B #A2F15B
monochromatic
#1510C1 #2823EC #5F5BF1 #9693F6 #CDCCFB

Accessibility & contrast

On white

4.94
#5F5BF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5F5BF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BF1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BF1#FFFFFF#000000##FFFFFF
##5F5BF11.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#006AEE
Tritanopia (blue-blind)
#00819E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5bf1;
/* rgb */ color: rgb(95, 91, 241);
/* oklch */ color: oklch(56.4% 0.218 278.0);
Tailwind
colors: {
  custom: {
    50: '#9a8af7',
    500: '#5f5bf1',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bf1;
$custom-light: #9a8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bf1",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 241
  },
  "hsl": {
    "h": 241.6,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56422,
    "c": 0.21811,
    "h": 278
  },
  "luminance": 0.16266
}

Semantic roles & 50–950 ramp

primary
#5F5BF1
secondary
#ECEDBA
accent
#E105DB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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