#5852BF#5852BF

#5852BF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.5% C 0.166 H 281.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5852BF
RGBrgb(88, 82, 191)
HSLhsl(243, 46%, 54%)
HSVhsv(243, 57%, 75%)
CMYKcmyk(53.9%, 57.1%, 0%, 25.1%)
CIE-LABlab(41.01, 32.87, -56.73)
CIE-LCHlch(41.01, 65.57, 300.09°)
OKLaboklab(50.48% 0.032 -0.1625)
OKLCHoklch(50.48% 0.166 281.1)
XYZxyz(16.4429, 11.8699, 50.7048)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852BF #B9BF52
analogous
#5282BF #5852BF #8E52BF
triadic
#5852BF #BF5852 #52BF58
tetradic
#5852BF #BF5282 #B9BF52 #52BF8E
square
#5852BF #BF5282 #B9BF52 #52BF8E
split-complementary
#5852BF #BF8E52 #82BF52
monochromatic
#2C296E #3F399B #5852BF #837FD0 #AEABE0

Accessibility & contrast

On white

6.22
#5852BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5852BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852BF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852BF#FFFFFF#000000##FFFFFF
##5852BF1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#2A6B80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5852bf;
/* rgb */ color: rgb(88, 82, 191);
/* oklch */ color: oklch(50.5% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#8f83d3',
    500: '#5852bf',
    950: '#000000',
  },
}
SCSS
$custom: #5852bf;
$custom-light: #8f83d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5852bf",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 243.303,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50481,
    "c": 0.16559,
    "h": 281.1
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#5852BF
secondary
#CBCE9F
accent
#D652CE
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5852BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5852BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva