#5F45E2#5F45E2

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

Color values

HEX#5F45E2
RGBrgb(95, 69, 226)
HSLhsl(250, 73%, 58%)
HSVhsv(250, 69%, 89%)
CMYKcmyk(58%, 69.5%, 0%, 11.4%)
CIE-LABlab(41.50, 52.36, -76.07)
CIE-LCHlch(41.50, 92.35, 304.54°)
OKLaboklab(51.84% 0.0498 -0.2191)
OKLCHoklch(51.84% 0.225 282.8)
XYZxyz(20.5707, 12.1788, 73.2035)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45E2 #C8E245
analogous
#457AE2 #5F45E2 #AD45E2
triadic
#5F45E2 #E25F45 #45E25F
tetradic
#5F45E2 #E2457A #C8E245 #45E2AD
square
#5F45E2 #E2457A #C8E245 #45E2AD
split-complementary
#5F45E2 #E2AD45 #7AE245
monochromatic
#2C1795 #3C20CA #5F45E2 #8D7AEA #BAAFF3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F45E2#FFFFFF#000000##FFFFFF
##5F45E21.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)
#0067E7
Deuteranopia (green-blind)
#005CDF
Tritanopia (blue-blind)
#0A6F8F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f45e2;
/* rgb */ color: rgb(95, 69, 226);
/* oklch */ color: oklch(51.8% 0.225 282.8);
Tailwind
colors: {
  custom: {
    50: '#9a7bec',
    500: '#5f45e2',
    950: '#000000',
  },
}
SCSS
$custom: #5f45e2;
$custom-light: #9a7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45e2",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 249.936,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51835,
    "c": 0.22467,
    "h": 282.8
  },
  "luminance": 0.1218
}

Semantic roles & 50–950 ramp

primary
#5F45E2
secondary
#D6E1A2
accent
#F038D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45E2

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

Preview Lab → · Contrast checker → · Palette generator →

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