#5238D9#5238D9

#5238D9 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 48.2% C 0.229 H 280.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5238D9
RGBrgb(82, 56, 217)
HSLhsl(250, 68%, 54%)
HSVhsv(250, 74%, 85%)
CMYKcmyk(62.2%, 74.2%, 0%, 14.9%)
CIE-LABlab(37.17, 54.80, -78.08)
CIE-LCHlch(37.17, 95.39, 305.06°)
OKLaboklab(48.25% 0.0431 -0.2253)
OKLCHoklch(48.25% 0.229 280.8)
XYZxyz(17.4143, 9.6306, 66.5734)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5238D9 #BFD938
analogous
#386FD9 #5238D9 #A238D9
triadic
#5238D9 #D95238 #38D952
tetradic
#5238D9 #D9386F #BFD938 #38D9A2
square
#5238D9 #D9386F #BFD938 #38D9A2
split-complementary
#5238D9 #D9A238 #6FD938
monochromatic
#29187E #3922B2 #5238D9 #7F6BE3 #AB9FED

Accessibility & contrast

On white

7.18
#5238D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5238D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5238D9
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5238D9#FFFFFF#000000##FFFFFF
##5238D91.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDE
Deuteranopia (green-blind)
#0051D6
Tritanopia (blue-blind)
#006686
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5238d9;
/* rgb */ color: rgb(82, 56, 217);
/* oklch */ color: oklch(48.2% 0.229 280.8);
Tailwind
colors: {
  custom: {
    50: '#9372e6',
    500: '#5238d9',
    950: '#000000',
  },
}
SCSS
$custom: #5238d9;
$custom-light: #9372e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5238d9",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 249.689,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48247,
    "c": 0.22934,
    "h": 280.8
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#5238D9
secondary
#CED994
accent
#EB3DCF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5238D9

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

Preview Lab → · Contrast checker → · Palette generator →

#5238D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva