#5242D9#5242D9

#5242D9 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.219 H 279.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5242D9
RGBrgb(82, 66, 217)
HSLhsl(246, 67%, 55%)
HSVhsv(246, 70%, 85%)
CMYKcmyk(62.2%, 69.6%, 0%, 14.9%)
CIE-LABlab(39.07, 49.49, -74.96)
CIE-LCHlch(39.07, 89.82, 303.44°)
OKLaboklab(49.59% 0.0364 -0.2162)
OKLCHoklch(49.59% 0.219 279.5)
XYZxyz(17.9483, 10.6986, 66.7514)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242D9 #C9D942
analogous
#427DD9 #5242D9 #9E42D9
triadic
#5242D9 #D95242 #42D952
tetradic
#5242D9 #D9427D #C9D942 #42D99E
square
#5242D9 #D9427D #C9D942 #42D99E
split-complementary
#5242D9 #D99E42 #7DD942
monochromatic
#261B86 #3525B9 #5242D9 #8175E3 #AFA8ED

Accessibility & contrast

On white

6.69
#5242D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5242D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242D9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242D9#FFFFFF#000000##FFFFFF
##5242D91.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0056D6
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5242d9;
/* rgb */ color: rgb(82, 66, 217);
/* oklch */ color: oklch(49.6% 0.219 279.5);
Tailwind
colors: {
  custom: {
    50: '#9278e6',
    500: '#5242d9',
    950: '#000000',
  },
}
SCSS
$custom: #5242d9;
$custom-light: #9278e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5242d9",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 246.358,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49594,
    "c": 0.21923,
    "h": 279.5
  },
  "luminance": 0.107
}

Semantic roles & 50–950 ramp

primary
#5242D9
secondary
#D4DB9C
accent
#E93ED7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5242D9

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

Preview Lab → · Contrast checker → · Palette generator →

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