#5239F2#5239F2

#5239F2 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.8% C 0.257 H 278.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5239F2
RGBrgb(82, 57, 242)
HSLhsl(248, 88%, 59%)
HSVhsv(248, 76%, 95%)
CMYKcmyk(66.1%, 76.4%, 0%, 5.1%)
CIE-LABlab(39.80, 61.60, -87.97)
CIE-LCHlch(39.80, 107.40, 305.00°)
OKLaboklab(50.82% 0.0365 -0.2541)
OKLCHoklch(50.82% 0.257 278.2)
XYZxyz(20.9646, 11.1291, 85.0305)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5239F2 #D9F239
analogous
#397CF2 #5239F2 #AE39F2
triadic
#5239F2 #F25239 #39F252
tetradic
#5239F2 #F2397C #D9F239 #39F2AE
square
#5239F2 #F2397C #D9F239 #39F2AE
split-complementary
#5239F2 #F2AE39 #7CF239
monochromatic
#200BA6 #2B0FDF #5239F2 #8472F6 #B6ACFA

Accessibility & contrast

On white

6.51
#5239F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5239F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5239F2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5239F2#FFFFFF#000000##FFFFFF
##5239F21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065F7
Deuteranopia (green-blind)
#0056EF
Tritanopia (blue-blind)
#007095
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5239f2;
/* rgb */ color: rgb(82, 57, 242);
/* oklch */ color: oklch(50.8% 0.257 278.2);
Tailwind
colors: {
  custom: {
    50: '#9774f8',
    500: '#5239f2',
    950: '#000000',
  },
}
SCSS
$custom: #5239f2;
$custom-light: #9774f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5239f2",
  "rgb": {
    "r": 82,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 248.108,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.50822,
    "c": 0.25674,
    "h": 278.2
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#5239F2
secondary
#DEE89F
accent
#FE2AE1
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5239F2

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

Preview Lab → · Contrast checker → · Palette generator →

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