#5F46DE#5F46DE

#5F46DE is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.6% C 0.219 H 283.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5F46DE
RGBrgb(95, 70, 222)
HSLhsl(250, 70%, 57%)
HSVhsv(250, 68%, 87%)
CMYKcmyk(57.2%, 68.5%, 0%, 12.9%)
CIE-LABlab(41.35, 50.63, -74.03)
CIE-LCHlch(41.35, 89.69, 304.37°)
OKLaboklab(51.63% 0.0496 -0.2131)
OKLCHoklch(51.63% 0.219 283.1)
XYZxyz(20.0902, 12.0859, 70.3672)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46DE #C5DE46
analogous
#4679DE #5F46DE #AB46DE
triadic
#5F46DE #DE5F46 #46DE5F
tetradic
#5F46DE #DE4679 #C5DE46 #46DEAB
square
#5F46DE #DE4679 #C5DE46 #46DEAB
split-complementary
#5F46DE #DEAB46 #79DE46
monochromatic
#2D1A90 #3D23C4 #5F46DE #8C7AE7 #B9AEF1

Accessibility & contrast

On white

6.15
#5F46DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5F46DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46DE
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46DE#FFFFFF#000000##FFFFFF
##5F46DE1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E3
Deuteranopia (green-blind)
#005CDB
Tritanopia (blue-blind)
#176E8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f46de;
/* rgb */ color: rgb(95, 70, 222);
/* oklch */ color: oklch(51.6% 0.219 283.1);
Tailwind
colors: {
  custom: {
    50: '#997ce9',
    500: '#5f46de',
    950: '#000000',
  },
}
SCSS
$custom: #5f46de;
$custom-light: #997ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46de",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 222
  },
  "hsl": {
    "h": 249.868,
    "s": 69.725,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51625,
    "c": 0.21882,
    "h": 283.1
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#5F46DE
secondary
#D5DFA1
accent
#ED3BCF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46DE

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

Preview Lab → · Contrast checker → · Palette generator →

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