#5F46DF#5F46DF

#5F46DF is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.7% C 0.220 H 283.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5F46DF
RGBrgb(95, 70, 223)
HSLhsl(250, 71%, 57%)
HSVhsv(250, 69%, 87%)
CMYKcmyk(57.4%, 68.6%, 0%, 12.5%)
CIE-LABlab(41.44, 50.93, -74.46)
CIE-LCHlch(41.44, 90.22, 304.37°)
OKLaboklab(51.71% 0.0495 -0.2144)
OKLCHoklch(51.71% 0.22 283)
XYZxyz(20.2246, 12.1396, 71.0752)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46DF #C6DF46
analogous
#4679DF #5F46DF #AC46DF
triadic
#5F46DF #DF5F46 #46DF5F
tetradic
#5F46DF #DF4679 #C6DF46 #46DFAC
square
#5F46DF #DF4679 #C6DF46 #46DFAC
split-complementary
#5F46DF #DFAC46 #79DF46
monochromatic
#2D1991 #3D22C6 #5F46DF #8C7AE8 #B9AEF1

Accessibility & contrast

On white

6.13
#5F46DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F46DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46DF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46DF#FFFFFF#000000##FFFFFF
##5F46DF1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#146E8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f46df;
/* rgb */ color: rgb(95, 70, 223);
/* oklch */ color: oklch(51.7% 0.220 283.0);
Tailwind
colors: {
  custom: {
    50: '#997cea',
    500: '#5f46df',
    950: '#000000',
  },
}
SCSS
$custom: #5f46df;
$custom-light: #997cea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46df",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 223
  },
  "hsl": {
    "h": 249.804,
    "s": 70.507,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.22001,
    "h": 283
  },
  "luminance": 0.12141
}

Semantic roles & 50–950 ramp

primary
#5F46DF
secondary
#D5DFA2
accent
#ED3BD0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46DF

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

Preview Lab → · Contrast checker → · Palette generator →

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