#5F5FE8#5F5FE8

#5F5FE8 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.4% C 0.202 H 277.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5F5FE8
RGBrgb(95, 95, 232)
HSLhsl(240, 75%, 64%)
HSVhsv(240, 59%, 91%)
CMYKcmyk(59.1%, 59.1%, 0%, 9%)
CIE-LABlab(47.55, 39.33, -69.59)
CIE-LCHlch(47.55, 79.94, 299.47°)
OKLaboklab(56.38% 0.0272 -0.2)
OKLCHoklch(56.38% 0.202 277.7)
XYZxyz(23.3723, 16.4418, 78.2702)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5FE8 #E8E85F
analogous
#5FA4E8 #5F5FE8 #A45FE8
triadic
#5F5FE8 #E85F5F #5FE85F
tetradic
#5F5FE8 #E85FA4 #E8E85F #5FE8A4
square
#5F5FE8 #E85FA4 #E8E85F #5FE8A4
split-complementary
#5F5FE8 #E8A45F #A4E85F
monochromatic
#1A1AB3 #2929E0 #5F5FE8 #9595F0 #CACAF7

Accessibility & contrast

On white

4.90
#5F5FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5F5FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5FE8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5FE8#FFFFFF#000000##FFFFFF
##5F5FE81.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#00809A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f5fe8;
/* rgb */ color: rgb(95, 95, 232);
/* oklch */ color: oklch(56.4% 0.202 277.7);
Tailwind
colors: {
  custom: {
    50: '#998cf0',
    500: '#5f5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5f5fe8;
$custom-light: #998cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5fe8",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 240,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.56379,
    "c": 0.20186,
    "h": 277.7
  },
  "luminance": 0.16444
}

Semantic roles & 50–950 ramp

primary
#5F5FE8
secondary
#E9E9BA
accent
#D70ED7
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5F5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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