#5242C8#5242C8

#5242C8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 48.1% C 0.198 H 281.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5242C8
RGBrgb(82, 66, 200)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 67%, 78%)
CMYKcmyk(59%, 67%, 0%, 21.6%)
CIE-LABlab(37.59, 44.23, -67.56)
CIE-LCHlch(37.59, 80.75, 303.21°)
OKLaboklab(48.08% 0.0389 -0.1945)
OKLCHoklch(48.08% 0.198 281.3)
XYZxyz(15.8500, 9.8593, 55.7002)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242C8 #B8C842
analogous
#4275C8 #5242C8 #9542C8
triadic
#5242C8 #C85242 #42C852
tetradic
#5242C8 #C84275 #B8C842 #42C895
square
#5242C8 #C84275 #B8C842 #42C895
split-complementary
#5242C8 #C89542 #75C842
monochromatic
#2A206F #3C2E9F #5242C8 #7D71D6 #A9A1E4

Accessibility & contrast

On white

7.07
#5242C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5242C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5242C8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242C8#FFFFFF#000000##FFFFFF
##5242C81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5242c8;
/* rgb */ color: rgb(82, 66, 200);
/* oklch */ color: oklch(48.1% 0.198 281.3);
Tailwind
colors: {
  custom: {
    50: '#8f78da',
    500: '#5242c8',
    950: '#000000',
  },
}
SCSS
$custom: #5242c8;
$custom-light: #8f78da;
$custom-dark: #000000;
JSON
{
  "hex": "#5242c8",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 247.164,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.19839,
    "h": 281.3
  },
  "luminance": 0.0986
}

Semantic roles & 50–950 ramp

primary
#5242C8
secondary
#C9D096
accent
#DE4ACC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5242C8

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

Preview Lab → · Contrast checker → · Palette generator →

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