#5F5BEE#5F5BEE

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

Color values

HEX#5F5BEE
RGBrgb(95, 91, 238)
HSLhsl(242, 81%, 65%)
HSVhsv(242, 62%, 93%)
CMYKcmyk(60.1%, 61.8%, 0%, 6.7%)
CIE-LABlab(47.09, 43.61, -73.72)
CIE-LCHlch(47.09, 85.65, 300.61°)
OKLaboklab(56.18% 0.0304 -0.2122)
OKLCHoklch(56.18% 0.214 278.2)
XYZxyz(23.8881, 16.0863, 82.7185)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BEE #EAEE5B
analogous
#5BA0EE #5F5BEE #A95BEE
triadic
#5F5BEE #EE5F5B #5BEE5F
tetradic
#5F5BEE #EE5BA0 #EAEE5B #5BEEA9
square
#5F5BEE #EE5BA0 #EAEE5B #5BEEA9
split-complementary
#5F5BEE #EEA95B #A0EE5B
monochromatic
#1813BB #2924E8 #5F5BEE #9592F4 #CBCAF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F5BEE#FFFFFF#000000##FFFFFF
##5F5BEE1.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)
#0076F3
Deuteranopia (green-blind)
#006AEB
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f5bee;
/* rgb */ color: rgb(95, 91, 238);
/* oklch */ color: oklch(56.2% 0.214 278.2);
Tailwind
colors: {
  custom: {
    50: '#9a8af5',
    500: '#5f5bee',
    950: '#000000',
  },
}
SCSS
$custom: #5f5bee;
$custom-light: #9a8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5bee",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 241.633,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.21434,
    "h": 278.2
  },
  "luminance": 0.16088
}

Semantic roles & 50–950 ramp

primary
#5F5BEE
secondary
#EAECB9
accent
#DE08D8
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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