#5F46E7#5F46E7

#5F46E7 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.4% C 0.230 H 282.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5F46E7
RGBrgb(95, 70, 231)
HSLhsl(249, 77%, 59%)
HSVhsv(249, 70%, 91%)
CMYKcmyk(58.9%, 69.7%, 0%, 9.4%)
CIE-LABlab(42.13, 53.30, -77.89)
CIE-LCHlch(42.13, 94.38, 304.39°)
OKLaboklab(52.42% 0.0481 -0.2244)
OKLCHoklch(52.42% 0.23 282.1)
XYZxyz(21.3288, 12.5813, 76.8903)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46E7 #CEE746
analogous
#467EE7 #5F46E7 #B046E7
triadic
#5F46E7 #E75F46 #46E75F
tetradic
#5F46E7 #E7467E #CEE746 #46E7B0
square
#5F46E7 #E7467E #CEE746 #46E7B0
split-complementary
#5F46E7 #E7B046 #7EE746
monochromatic
#2A159E #381CD4 #5F46E7 #8E7CEE #BDB2F5

Accessibility & contrast

On white

5.97
#5F46E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5F46E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46E7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46E7#FFFFFF#000000##FFFFFF
##5F46E71.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f46e7;
/* rgb */ color: rgb(95, 70, 231);
/* oklch */ color: oklch(52.4% 0.230 282.1);
Tailwind
colors: {
  custom: {
    50: '#9a7cf0',
    500: '#5f46e7',
    950: '#000000',
  },
}
SCSS
$custom: #5f46e7;
$custom-light: #9a7cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46e7",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 231
  },
  "hsl": {
    "h": 249.317,
    "s": 77.033,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52415,
    "c": 0.22951,
    "h": 282.1
  },
  "luminance": 0.12583
}

Semantic roles & 50–950 ramp

primary
#5F46E7
secondary
#DAE4A5
accent
#F434D6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F46E7

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

Preview Lab → · Contrast checker → · Palette generator →

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