#5239D3#5239D3

#5239D3 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.8% C 0.221 H 281.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5239D3
RGBrgb(82, 57, 211)
HSLhsl(250, 64%, 53%)
HSVhsv(250, 73%, 83%)
CMYKcmyk(61.1%, 73%, 0%, 17.3%)
CIE-LABlab(36.78, 52.51, -75.26)
CIE-LCHlch(36.78, 91.76, 304.91°)
OKLaboklab(47.8% 0.0438 -0.217)
OKLCHoklch(47.8% 0.221 281.4)
XYZxyz(16.6970, 9.4220, 62.5542)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239D3 #BAD339
analogous
#396DD3 #5239D3 #9F39D3
triadic
#5239D3 #D35239 #39D352
tetradic
#5239D3 #D3396D #BAD339 #39D39F
square
#5239D3 #D3396D #BAD339 #39D39F
split-complementary
#5239D3 #D39F39 #6DD339
monochromatic
#2A1A77 #3B26A9 #5239D3 #7E6BDE #AA9DE9

Accessibility & contrast

On white

7.28
#5239D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5239D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5239D3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239D3#FFFFFF#000000##FFFFFF
##5239D31.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD7
Deuteranopia (green-blind)
#0051D0
Tritanopia (blue-blind)
#006483
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5239d3;
/* rgb */ color: rgb(82, 57, 211);
/* oklch */ color: oklch(47.8% 0.221 281.4);
Tailwind
colors: {
  custom: {
    50: '#9172e2',
    500: '#5239d3',
    950: '#000000',
  },
}
SCSS
$custom: #5239d3;
$custom-light: #9172e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5239d3",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 211
  },
  "hsl": {
    "h": 249.74,
    "s": 63.636,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.2214,
    "h": 281.4
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#5239D3
secondary
#CAD592
accent
#E741CC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5239D3

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

Preview Lab → · Contrast checker → · Palette generator →

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