#5F45EF#5F45EF

#5F45EF is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 53.0% C 0.240 H 281.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5F45EF
RGBrgb(95, 69, 239)
HSLhsl(249, 84%, 60%)
HSVhsv(249, 71%, 94%)
CMYKcmyk(60.3%, 71.1%, 0%, 6.3%)
CIE-LABlab(42.64, 56.18, -81.56)
CIE-LCHlch(42.64, 99.04, 304.56°)
OKLaboklab(53% 0.0473 -0.2352)
OKLCHoklch(53% 0.24 281.4)
XYZxyz(22.4225, 12.9195, 82.9568)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45EF #D5EF45
analogous
#4580EF #5F45EF #B445EF
triadic
#5F45EF #EF5F45 #45EF5F
tetradic
#5F45EF #EF4580 #D5EF45 #45EFB4
square
#5F45EF #EF4580 #D5EF45 #45EFB4
split-complementary
#5F45EF #EFB445 #80EF45
monochromatic
#270FAB #3314E3 #5F45EF #8F7DF4 #C0B6F9

Accessibility & contrast

On white

5.86
#5F45EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5F45EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45EF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45EF#FFFFFF#000000##FFFFFF
##5F45EF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF4
Deuteranopia (green-blind)
#005EEC
Tritanopia (blue-blind)
#007496
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f45ef;
/* rgb */ color: rgb(95, 69, 239);
/* oklch */ color: oklch(53.0% 0.240 281.4);
Tailwind
colors: {
  custom: {
    50: '#9c7cf6',
    500: '#5f45ef',
    950: '#000000',
  },
}
SCSS
$custom: #5f45ef;
$custom-light: #9c7cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45ef",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 239
  },
  "hsl": {
    "h": 249.176,
    "s": 84.158,
    "l": 60.392
  },
  "oklch": {
    "l": 0.52998,
    "c": 0.23988,
    "h": 281.4
  },
  "luminance": 0.12921
}

Semantic roles & 50–950 ramp

primary
#5F45EF
secondary
#DEE8A7
accent
#E105BF
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5F45EF

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

Preview Lab → · Contrast checker → · Palette generator →

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