#5242D8#5242D8

#5242D8 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.218 H 279.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5242D8
RGBrgb(82, 66, 216)
HSLhsl(246, 66%, 55%)
HSVhsv(246, 69%, 85%)
CMYKcmyk(62%, 69.4%, 0%, 15.3%)
CIE-LABlab(38.98, 49.19, -74.53)
CIE-LCHlch(38.98, 89.30, 303.42°)
OKLaboklab(49.5% 0.0365 -0.2149)
OKLCHoklch(49.5% 0.218 279.6)
XYZxyz(17.8186, 10.6468, 66.0685)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242D8 #C8D842
analogous
#427DD8 #5242D8 #9D42D8
triadic
#5242D8 #D85242 #42D852
tetradic
#5242D8 #D8427D #C8D842 #42D89D
square
#5242D8 #D8427D #C8D842 #42D89D
split-complementary
#5242D8 #D89D42 #7DD842
monochromatic
#271B84 #3526B7 #5242D8 #8075E2 #AFA7ED

Accessibility & contrast

On white

6.71
#5242D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5242D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242D8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242D8#FFFFFF#000000##FFFFFF
##5242D81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0056D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5242d8;
/* rgb */ color: rgb(82, 66, 216);
/* oklch */ color: oklch(49.5% 0.218 279.6);
Tailwind
colors: {
  custom: {
    50: '#9278e5',
    500: '#5242d8',
    950: '#000000',
  },
}
SCSS
$custom: #5242d8;
$custom-light: #9278e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5242d8",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 246.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49503,
    "c": 0.21802,
    "h": 279.6
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#5242D8
secondary
#D4DA9C
accent
#E93FD7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5242D8

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

Preview Lab → · Contrast checker → · Palette generator →

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