#5F47E8#5F47E8

#5F47E8 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.6% C 0.230 H 281.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5F47E8
RGBrgb(95, 71, 232)
HSLhsl(249, 78%, 59%)
HSVhsv(249, 69%, 91%)
CMYKcmyk(59.1%, 69.4%, 0%, 9%)
CIE-LABlab(42.41, 53.06, -77.99)
CIE-LCHlch(42.41, 94.33, 304.23°)
OKLaboklab(52.64% 0.0472 -0.2247)
OKLCHoklch(52.64% 0.23 281.9)
XYZxyz(21.5335, 12.7641, 77.6573)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47E8 #D0E847
analogous
#4780E8 #5F47E8 #B047E8
triadic
#5F47E8 #E85F47 #47E85F
tetradic
#5F47E8 #E84780 #D0E847 #47E8B0
square
#5F47E8 #E84780 #D0E847 #47E8B0
split-complementary
#5F47E8 #E8B047 #80E847
monochromatic
#2914A1 #371BD7 #5F47E8 #8E7DEF #BEB4F6

Accessibility & contrast

On white

5.91
#5F47E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5F47E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47E8
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47E8#FFFFFF#000000##FFFFFF
##5F47E81.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AED
Deuteranopia (green-blind)
#005EE5
Tritanopia (blue-blind)
#007292
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f47e8;
/* rgb */ color: rgb(95, 71, 232);
/* oklch */ color: oklch(52.6% 0.230 281.9);
Tailwind
colors: {
  custom: {
    50: '#9a7cf1',
    500: '#5f47e8',
    950: '#000000',
  },
}
SCSS
$custom: #5f47e8;
$custom-light: #9a7cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47e8",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 232
  },
  "hsl": {
    "h": 248.944,
    "s": 77.778,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.22962,
    "h": 281.9
  },
  "luminance": 0.12766
}

Semantic roles & 50–950 ramp

primary
#5F47E8
secondary
#DBE5A6
accent
#F434D8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F47E8

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

Preview Lab → · Contrast checker → · Palette generator →

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