#5F52F1#5F52F1

#5F52F1 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 55.0% C 0.228 H 279.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5F52F1
RGBrgb(95, 82, 241)
HSLhsl(245, 85%, 63%)
HSVhsv(245, 66%, 95%)
CMYKcmyk(60.6%, 66%, 0%, 5.5%)
CIE-LABlab(45.38, 49.73, -78.19)
CIE-LCHlch(45.38, 92.66, 302.45°)
OKLaboklab(55.01% 0.0375 -0.2253)
OKLCHoklch(55.01% 0.228 279.4)
XYZxyz(23.6087, 14.8166, 84.8178)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52F1 #E4F152
analogous
#5294F1 #5F52F1 #AF52F1
triadic
#5F52F1 #F15F52 #52F15F
tetradic
#5F52F1 #F15294 #E4F152 #52F1AF
square
#5F52F1 #F15294 #E4F152 #52F1AF
split-complementary
#5F52F1 #F1AF52 #94F152
monochromatic
#1D0FBA #2B19EC #5F52F1 #938BF6 #C8C3FA

Accessibility & contrast

On white

5.30
#5F52F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5F52F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52F1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52F1#FFFFFF#000000##FFFFFF
##5F52F11.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F6
Deuteranopia (green-blind)
#0065EE
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f52f1;
/* rgb */ color: rgb(95, 82, 241);
/* oklch */ color: oklch(55.0% 0.228 279.4);
Tailwind
colors: {
  custom: {
    50: '#9b84f7',
    500: '#5f52f1',
    950: '#000000',
  },
}
SCSS
$custom: #5f52f1;
$custom-light: #9b84f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52f1",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 241
  },
  "hsl": {
    "h": 244.906,
    "s": 85.027,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55014,
    "c": 0.22841,
    "h": 279.4
  },
  "luminance": 0.14818
}

Semantic roles & 50–950 ramp

primary
#5F52F1
secondary
#E7ECB3
accent
#E204CF
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #5F52F1

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

Preview Lab → · Contrast checker → · Palette generator →

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