#5242CE#5242CE

#5242CE is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.206 H 280.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5242CE
RGBrgb(82, 66, 206)
HSLhsl(247, 59%, 53%)
HSVhsv(247, 68%, 81%)
CMYKcmyk(60.2%, 68%, 0%, 19.2%)
CIE-LABlab(38.10, 46.09, -70.20)
CIE-LCHlch(38.10, 83.98, 303.29°)
OKLaboklab(48.61% 0.0381 -0.2023)
OKLCHoklch(48.61% 0.206 280.7)
XYZxyz(16.5650, 10.1453, 59.4659)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242CE #BECE42
analogous
#4278CE #5242CE #9842CE
triadic
#5242CE #CE5242 #42CE52
tetradic
#5242CE #CE4278 #BECE42 #42CE98
square
#5242CE #CE4278 #BECE42 #42CE98
split-complementary
#5242CE #CE9842 #78CE42
monochromatic
#291F77 #3A2BA7 #5242CE #7E73DB #ABA3E7

Accessibility & contrast

On white

6.93
#5242CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5242CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242CE
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242CE#FFFFFF#000000##FFFFFF
##5242CE1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5242ce;
/* rgb */ color: rgb(82, 66, 206);
/* oklch */ color: oklch(48.6% 0.206 280.7);
Tailwind
colors: {
  custom: {
    50: '#9078de',
    500: '#5242ce',
    950: '#000000',
  },
}
SCSS
$custom: #5242ce;
$custom-light: #9078de;
$custom-dark: #000000;
JSON
{
  "hex": "#5242ce",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 246.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48605,
    "c": 0.20582,
    "h": 280.7
  },
  "luminance": 0.10146
}

Semantic roles & 50–950 ramp

primary
#5242CE
secondary
#CDD498
accent
#E246D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5242CE

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

Preview Lab → · Contrast checker → · Palette generator →

#5242CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva