#5239E2#5239E2

#5239E2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 49.2% C 0.239 H 279.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5239E2
RGBrgb(82, 57, 226)
HSLhsl(249, 74%, 55%)
HSVhsv(249, 75%, 89%)
CMYKcmyk(63.7%, 74.8%, 0%, 11.4%)
CIE-LABlab(38.22, 56.94, -81.51)
CIE-LCHlch(38.22, 99.43, 304.94°)
OKLaboklab(49.24% 0.0404 -0.2353)
OKLCHoklch(49.24% 0.239 279.7)
XYZxyz(18.6659, 10.2096, 72.9238)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239E2 #C9E239
analogous
#3974E2 #5239E2 #A739E2
triadic
#5239E2 #E25239 #39E252
tetradic
#5239E2 #E23974 #C9E239 #39E2A7
square
#5239E2 #E23974 #C9E239 #39E2A7
split-complementary
#5239E2 #E2A739 #74E239
monochromatic
#26158C #351CC1 #5239E2 #816EEA #AFA4F2

Accessibility & contrast

On white

6.90
#5239E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5239E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5239E2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239E2#FFFFFF#000000##FFFFFF
##5239E21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#006A8B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5239e2;
/* rgb */ color: rgb(82, 57, 226);
/* oklch */ color: oklch(49.2% 0.239 279.7);
Tailwind
colors: {
  custom: {
    50: '#9473ec',
    500: '#5239e2',
    950: '#000000',
  },
}
SCSS
$custom: #5239e2;
$custom-light: #9473ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5239e2",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 226
  },
  "hsl": {
    "h": 248.876,
    "s": 74.449,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49243,
    "c": 0.23873,
    "h": 279.7
  },
  "luminance": 0.10211
}

Semantic roles & 50–950 ramp

primary
#5239E2
secondary
#D4DF98
accent
#F137D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5239E2

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

Preview Lab → · Contrast checker → · Palette generator →

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