#5F52EB#5F52EB

#5F52EB is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.5% C 0.221 H 279.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5F52EB
RGBrgb(95, 82, 235)
HSLhsl(245, 79%, 62%)
HSVhsv(245, 65%, 92%)
CMYKcmyk(59.6%, 65.1%, 0%, 7.8%)
CIE-LABlab(44.89, 47.88, -75.62)
CIE-LCHlch(44.89, 89.50, 302.34°)
OKLaboklab(54.51% 0.0382 -0.2178)
OKLCHoklch(54.51% 0.221 279.9)
XYZxyz(22.7273, 14.4640, 80.1753)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52EB #DEEB52
analogous
#5292EB #5F52EB #AC52EB
triadic
#5F52EB #EB5F52 #52EB5F
tetradic
#5F52EB #EB5292 #DEEB52 #52EBAC
square
#5F52EB #EB5292 #DEEB52 #52EBAC
split-complementary
#5F52EB #EBAC52 #92EB52
monochromatic
#2114AE #2C1BE5 #5F52EB #9289F1 #C4C0F8

Accessibility & contrast

On white

5.39
#5F52EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5F52EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52EB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52EB#FFFFFF#000000##FFFFFF
##5F52EB1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f52eb;
/* rgb */ color: rgb(95, 82, 235);
/* oklch */ color: oklch(54.5% 0.221 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a84f3',
    500: '#5f52eb',
    950: '#000000',
  },
}
SCSS
$custom: #5f52eb;
$custom-light: #9a84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52eb",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 245.098,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.22109,
    "h": 279.9
  },
  "luminance": 0.14466
}

Semantic roles & 50–950 ramp

primary
#5F52EB
secondary
#E4E8B0
accent
#DC0ACA
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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