#5F52CB#5F52CB

#5F52CB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.181 H 283.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5F52CB
RGBrgb(95, 82, 203)
HSLhsl(246, 54%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(53.2%, 59.6%, 0%, 20.4%)
CIE-LABlab(42.43, 37.99, -61.37)
CIE-LCHlch(42.43, 72.18, 301.76°)
OKLaboklab(51.94% 0.0406 -0.1759)
OKLCHoklch(51.94% 0.181 283)
XYZxyz(18.5128, 12.7782, 57.9793)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52CB #BECB52
analogous
#5281CB #5F52CB #9B52CB
triadic
#5F52CB #CB5F52 #52CB5F
tetradic
#5F52CB #CB5281 #BECB52 #52CB9B
square
#5F52CB #CB5281 #BECB52 #52CB9B
split-complementary
#5F52CB #CB9B52 #81CB52
monochromatic
#2F267D #4134AC #5F52CB #8B81D9 #B6B0E7

Accessibility & contrast

On white

5.91
#5F52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52CB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52CB#FFFFFF#000000##FFFFFF
##5F52CB1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#316F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f52cb;
/* rgb */ color: rgb(95, 82, 203);
/* oklch */ color: oklch(51.9% 0.181 283.0);
Tailwind
colors: {
  custom: {
    50: '#9583dc',
    500: '#5f52cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f52cb;
$custom-light: #9583dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52cb",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 246.446,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5194,
    "c": 0.18053,
    "h": 283
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#5F52CB
secondary
#D0D5A3
accent
#DD4BCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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