#5F5FF1#5F5FF1

#5F5FF1 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.1% C 0.213 H 277.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F5FF1
RGBrgb(95, 95, 241)
HSLhsl(240, 84%, 66%)
HSVhsv(240, 61%, 95%)
CMYKcmyk(60.6%, 60.6%, 0%, 5.5%)
CIE-LABlab(48.22, 42.20, -73.56)
CIE-LCHlch(48.22, 84.81, 299.84°)
OKLaboklab(57.08% 0.0269 -0.2117)
OKLCHoklch(57.08% 0.213 277.2)
XYZxyz(24.6836, 16.9663, 85.1761)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FF1 #F1F15F
analogous
#5FA8F1 #5F5FF1 #A85FF1
triadic
#5F5FF1 #F15F5F #5FF15F
tetradic
#5F5FF1 #F15FA8 #F1F15F #5FF1A8
square
#5F5FF1 #F15FA8 #F1F15F #5FF1A8
split-complementary
#5F5FF1 #F1A85F #A8F15F
monochromatic
#1111C4 #2727EC #5F5FF1 #9797F6 #D0D0FB

Accessibility & contrast

On white

4.78
#5F5FF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5F5FF1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FF1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FF1#FFFFFF#000000##FFFFFF
##5F5FF11.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F6
Deuteranopia (green-blind)
#006CEE
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5f5ff1;
/* rgb */ color: rgb(95, 95, 241);
/* oklch */ color: oklch(57.1% 0.213 277.2);
Tailwind
colors: {
  custom: {
    50: '#9a8df7',
    500: '#5f5ff1',
    950: '#000000',
  },
}
SCSS
$custom: #5f5ff1;
$custom-light: #9a8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5ff1",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 241
  },
  "hsl": {
    "h": 240,
    "s": 83.908,
    "l": 65.882
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.21338,
    "h": 277.2
  },
  "luminance": 0.16968
}

Semantic roles & 50–950 ramp

primary
#5F5FF1
secondary
#EEEEBE
accent
#E005E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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