#5239D2#5239D2

#5239D2 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.7% C 0.220 H 281.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5239D2
RGBrgb(82, 57, 210)
HSLhsl(250, 63%, 52%)
HSVhsv(250, 73%, 82%)
CMYKcmyk(61%, 72.9%, 0%, 17.6%)
CIE-LABlab(36.69, 52.21, -74.83)
CIE-LCHlch(36.69, 91.25, 304.90°)
OKLaboklab(47.71% 0.044 -0.2158)
OKLCHoklch(47.71% 0.22 281.5)
XYZxyz(16.5720, 9.3720, 61.8960)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239D2 #B9D239
analogous
#396CD2 #5239D2 #9F39D2
triadic
#5239D2 #D25239 #39D252
tetradic
#5239D2 #D2396C #B9D239 #39D29F
square
#5239D2 #D2396C #B9D239 #39D29F
split-complementary
#5239D2 #D29F39 #6CD239
monochromatic
#2A1B76 #3B26A8 #5239D2 #7E6BDD #A99DE9

Accessibility & contrast

On white

7.31
#5239D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5239D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239D2
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239D2#FFFFFF#000000##FFFFFF
##5239D21.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0051CF
Tritanopia (blue-blind)
#006482
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5239d2;
/* rgb */ color: rgb(82, 57, 210);
/* oklch */ color: oklch(47.7% 0.220 281.5);
Tailwind
colors: {
  custom: {
    50: '#9172e1',
    500: '#5239d2',
    950: '#000000',
  },
}
SCSS
$custom: #5239d2;
$custom-light: #9172e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5239d2",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 249.804,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47708,
    "c": 0.22023,
    "h": 281.5
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#5239D2
secondary
#CAD592
accent
#E642CB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0815
muted
#7E7B84

Preview Lab

Preview with #5239D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5239D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva