#5F52BC#5F52BC

#5F52BC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.8% C 0.161 H 284.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5F52BC
RGBrgb(95, 82, 188)
HSLhsl(247, 44%, 53%)
HSVhsv(247, 56%, 74%)
CMYKcmyk(49.5%, 56.4%, 0%, 26.3%)
CIE-LABlab(41.37, 33.38, -54.37)
CIE-LCHlch(41.37, 63.80, 301.55°)
OKLaboklab(50.83% 0.0408 -0.1553)
OKLCHoklch(50.83% 0.161 284.7)
XYZxyz(16.8110, 12.0975, 49.0165)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52BC #AFBC52
analogous
#527ABC #5F52BC #9452BC
triadic
#5F52BC #BC5F52 #52BC5F
tetradic
#5F52BC #BC527A #AFBC52 #52BC94
square
#5F52BC #BC527A #AFBC52 #52BC94
split-complementary
#5F52BC #BC9452 #7ABC52
monochromatic
#31296A #463A97 #5F52BC #887ECD #B1AADE

Accessibility & contrast

On white

6.14
#5F52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5F52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52BC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52BC#FFFFFF#000000##FFFFFF
##5F52BC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B65C0
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#3D6A7F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f52bc;
/* rgb */ color: rgb(95, 82, 188);
/* oklch */ color: oklch(50.8% 0.161 284.7);
Tailwind
colors: {
  custom: {
    50: '#9383d1',
    500: '#5f52bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f52bc;
$custom-light: #9383d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52bc",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 247.358,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50826,
    "c": 0.16057,
    "h": 284.7
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

primary
#5F52BC
secondary
#C6CC9E
accent
#D454C4
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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