#5F5AF1#5F5AF1

#5F5AF1 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.3% C 0.219 H 278.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5F5AF1
RGBrgb(95, 90, 241)
HSLhsl(242, 84%, 65%)
HSVhsv(242, 63%, 95%)
CMYKcmyk(60.6%, 62.7%, 0%, 5.5%)
CIE-LABlab(47.10, 45.14, -75.39)
CIE-LCHlch(47.10, 87.87, 300.91°)
OKLaboklab(56.26% 0.0311 -0.2171)
OKLCHoklch(56.26% 0.219 278.1)
XYZxyz(24.2476, 16.0942, 85.0308)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5AF1 #ECF15A
analogous
#5AA0F1 #5F5AF1 #AB5AF1
triadic
#5F5AF1 #F15F5A #5AF15F
tetradic
#5F5AF1 #F15AA0 #ECF15A #5AF1AB
square
#5F5AF1 #F15AA0 #ECF15A #5AF1AB
split-complementary
#5F5AF1 #F1AB5A #A0F15A
monochromatic
#1610C0 #2822EC #5F5AF1 #9692F6 #CCCBFB

Accessibility & contrast

On white

4.98
#5F5AF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5F5AF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5AF1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5AF1#FFFFFF#000000##FFFFFF
##5F5AF11.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#0069EE
Tritanopia (blue-blind)
#00809D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5af1;
/* rgb */ color: rgb(95, 90, 241);
/* oklch */ color: oklch(56.3% 0.219 278.1);
Tailwind
colors: {
  custom: {
    50: '#9b89f7',
    500: '#5f5af1',
    950: '#000000',
  },
}
SCSS
$custom: #5f5af1;
$custom-light: #9b89f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5af1",
  "rgb": {
    "r": 95,
    "g": 90,
    "b": 241
  },
  "hsl": {
    "h": 241.987,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.5626,
    "c": 0.21928,
    "h": 278.1
  },
  "luminance": 0.16096
}

Semantic roles & 50–950 ramp

primary
#5F5AF1
secondary
#EBEDBA
accent
#E105DA
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F5AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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