#5F52BF#5F52BF

#5F52BF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.0% C 0.165 H 284.3°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5F52BF
RGBrgb(95, 82, 191)
HSLhsl(247, 46%, 54%)
HSVhsv(247, 57%, 75%)
CMYKcmyk(50.3%, 57.1%, 0%, 25.1%)
CIE-LABlab(41.58, 34.30, -55.79)
CIE-LCHlch(41.58, 65.49, 301.58°)
OKLaboklab(51.04% 0.0408 -0.1595)
OKLCHoklch(51.04% 0.165 284.3)
XYZxyz(17.1378, 12.2282, 50.7374)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52BF #B2BF52
analogous
#527BBF #5F52BF #9552BF
triadic
#5F52BF #BF5F52 #52BF5F
tetradic
#5F52BF #BF527B #B2BF52 #52BF95
square
#5F52BF #BF527B #B2BF52 #52BF95
split-complementary
#5F52BF #BF9552 #7BBF52
monochromatic
#31296E #45399B #5F52BF #887FD0 #B2ABE0

Accessibility & contrast

On white

6.09
#5F52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5F52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52BF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52BF#FFFFFF#000000##FFFFFF
##5F52BF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#3B6B80
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f52bf;
/* rgb */ color: rgb(95, 82, 191);
/* oklch */ color: oklch(51.0% 0.165 284.3);
Tailwind
colors: {
  custom: {
    50: '#9483d3',
    500: '#5f52bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f52bf;
$custom-light: #9483d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52bf",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 247.156,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51043,
    "c": 0.16461,
    "h": 284.3
  },
  "luminance": 0.12229
}

Semantic roles & 50–950 ramp

primary
#5F52BF
secondary
#C8CE9F
accent
#D652C6
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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