#5F4FEB#5F4FEB

#5F4FEB is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 54.1% C 0.224 H 280.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5F4FEB
RGBrgb(95, 79, 235)
HSLhsl(246, 80%, 62%)
HSVhsv(246, 66%, 92%)
CMYKcmyk(59.6%, 66.4%, 0%, 7.8%)
CIE-LABlab(44.26, 49.57, -76.64)
CIE-LCHlch(44.26, 91.28, 302.89°)
OKLaboklab(54.05% 0.0406 -0.2208)
OKLCHoklch(54.05% 0.224 280.4)
XYZxyz(22.5060, 14.0214, 80.1016)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4FEB #DBEB4F
analogous
#4F8DEB #5F4FEB #AD4FEB
triadic
#5F4FEB #EB5F4F #4FEB5F
tetradic
#5F4FEB #EB4F8D #DBEB4F #4FEBAD
square
#5F4FEB #EB4F8D #DBEB4F #4FEBAD
split-complementary
#5F4FEB #EBAD4F #8DEB4F
monochromatic
#2314AC #2E1AE3 #5F4FEB #9186F1 #C3BDF7

Accessibility & contrast

On white

5.52
#5F4FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5F4FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4FEB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4FEB#FFFFFF#000000##FFFFFF
##5F4FEB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF0
Deuteranopia (green-blind)
#0063E8
Tritanopia (blue-blind)
#007896
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f4feb;
/* rgb */ color: rgb(95, 79, 235);
/* oklch */ color: oklch(54.1% 0.224 280.4);
Tailwind
colors: {
  custom: {
    50: '#9a82f3',
    500: '#5f4feb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4feb;
$custom-light: #9a82f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4feb",
  "rgb": {
    "r": 95,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 246.154,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54054,
    "c": 0.22448,
    "h": 280.4
  },
  "luminance": 0.14023
}

Semantic roles & 50–950 ramp

primary
#5F4FEB
secondary
#E2E8AE
accent
#DC0AC6
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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