#5F5DEF#5F5DEF

#5F5DEF is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.6% C 0.213 H 277.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5F5DEF
RGBrgb(95, 93, 239)
HSLhsl(241, 82%, 65%)
HSVhsv(241, 61%, 94%)
CMYKcmyk(60.3%, 61.1%, 0%, 6.3%)
CIE-LABlab(47.61, 42.75, -73.43)
CIE-LCHlch(47.61, 84.96, 300.21°)
OKLaboklab(56.59% 0.0287 -0.2113)
OKLCHoklch(56.59% 0.213 277.7)
XYZxyz(24.2086, 16.4917, 83.5521)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5DEF #EDEF5D
analogous
#5DA4EF #5F5DEF #A85DEF
triadic
#5F5DEF #EF5F5D #5DEF5F
tetradic
#5F5DEF #EF5DA4 #EDEF5D #5DEFA8
square
#5F5DEF #EF5DA4 #EDEF5D #5DEFA8
split-complementary
#5F5DEF #EFA85D #A4EF5D
monochromatic
#1513BF #2825E9 #5F5DEF #9695F5 #CDCCFA

Accessibility & contrast

On white

4.89
#5F5DEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5F5DEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5DEF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5DEF#FFFFFF#000000##FFFFFF
##5F5DEF1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#006BEC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f5def;
/* rgb */ color: rgb(95, 93, 239);
/* oklch */ color: oklch(56.6% 0.213 277.7);
Tailwind
colors: {
  custom: {
    50: '#9a8bf5',
    500: '#5f5def',
    950: '#000000',
  },
}
SCSS
$custom: #5f5def;
$custom-light: #9a8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5def",
  "rgb": {
    "r": 95,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 240.822,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.5659,
    "c": 0.21323,
    "h": 277.7
  },
  "luminance": 0.16494
}

Semantic roles & 50–950 ramp

primary
#5F5DEF
secondary
#ECEDBB
accent
#DE07DB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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