#5F46E0#5F46E0

#5F46E0 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.8% C 0.221 H 282.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5F46E0
RGBrgb(95, 70, 224)
HSLhsl(250, 71%, 58%)
HSVhsv(250, 69%, 88%)
CMYKcmyk(57.6%, 68.8%, 0%, 12.2%)
CIE-LABlab(41.52, 51.23, -74.89)
CIE-LCHlch(41.52, 90.74, 304.37°)
OKLaboklab(51.8% 0.0493 -0.2156)
OKLCHoklch(51.8% 0.221 282.9)
XYZxyz(20.3599, 12.1937, 71.7873)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46E0 #C7E046
analogous
#467AE0 #5F46E0 #AC46E0
triadic
#5F46E0 #E05F46 #46E05F
tetradic
#5F46E0 #E0467A #C7E046 #46E0AC
square
#5F46E0 #E0467A #C7E046 #46E0AC
split-complementary
#5F46E0 #E0AC46 #7AE046
monochromatic
#2C1993 #3C21C7 #5F46E0 #8C7AE9 #BAAFF2

Accessibility & contrast

On white

6.11
#5F46E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5F46E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46E0
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46E0#FFFFFF#000000##FFFFFF
##5F46E01.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E5
Deuteranopia (green-blind)
#005DDD
Tritanopia (blue-blind)
#116F8E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f46e0;
/* rgb */ color: rgb(95, 70, 224);
/* oklch */ color: oklch(51.8% 0.221 282.9);
Tailwind
colors: {
  custom: {
    50: '#997ceb',
    500: '#5f46e0',
    950: '#000000',
  },
}
SCSS
$custom: #5f46e0;
$custom-light: #997ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46e0",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 224
  },
  "hsl": {
    "h": 249.74,
    "s": 71.296,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51799,
    "c": 0.22122,
    "h": 282.9
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#5F46E0
secondary
#D6E0A2
accent
#EE3AD1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46E0

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

Preview Lab → · Contrast checker → · Palette generator →

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