#5F5BE4#5F5BE4

#5F5BE4 is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.4% C 0.202 H 278.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5F5BE4
RGBrgb(95, 91, 228)
HSLhsl(242, 72%, 63%)
HSVhsv(242, 60%, 89%)
CMYKcmyk(58.3%, 60.1%, 0%, 10.6%)
CIE-LABlab(46.33, 40.45, -69.31)
CIE-LCHlch(46.33, 80.25, 300.27°)
OKLaboklab(55.39% 0.031 -0.1992)
OKLCHoklch(55.39% 0.202 278.8)
XYZxyz(22.4595, 15.5149, 75.1949)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5BE4 #E0E45B
analogous
#5B9BE4 #5F5BE4 #A45BE4
triadic
#5F5BE4 #E45F5B #5BE45F
tetradic
#5F5BE4 #E45B9B #E0E45B #5BE4A4
square
#5F5BE4 #E45B9B #E0E45B #5BE4A4
split-complementary
#5F5BE4 #E4A45B #9BE45B
monochromatic
#201CA9 #2C26DB #5F5BE4 #9290ED #C6C4F5

Accessibility & contrast

On white

5.12
#5F5BE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5F5BE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5BE4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5BE4#FFFFFF#000000##FFFFFF
##5F5BE41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E8
Deuteranopia (green-blind)
#0068E1
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5f5be4;
/* rgb */ color: rgb(95, 91, 228);
/* oklch */ color: oklch(55.4% 0.202 278.8);
Tailwind
colors: {
  custom: {
    50: '#988aed',
    500: '#5f5be4',
    950: '#000000',
  },
}
SCSS
$custom: #5f5be4;
$custom-light: #988aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5be4",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 228
  },
  "hsl": {
    "h": 241.752,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55389,
    "c": 0.20161,
    "h": 278.8
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#5F5BE4
secondary
#E5E6B4
accent
#D412CE
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F5BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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