#5241DC#5241DC

#5241DC is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.224 H 279.4°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5241DC
RGBrgb(82, 65, 220)
HSLhsl(247, 69%, 56%)
HSVhsv(247, 70%, 86%)
CMYKcmyk(62.7%, 70.5%, 0%, 13.7%)
CIE-LABlab(39.14, 50.96, -76.56)
CIE-LCHlch(39.14, 91.97, 303.65°)
OKLaboklab(49.73% 0.0365 -0.2209)
OKLCHoklch(49.73% 0.224 279.4)
XYZxyz(18.2841, 10.7403, 68.8058)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241DC #CBDC41
analogous
#417DDC #5241DC #A041DC
triadic
#5241DC #DC5241 #41DC52
tetradic
#5241DC #DC417D #CBDC41 #41DCA0
square
#5241DC #DC417D #CBDC41 #41DCA0
split-complementary
#5241DC #DCA041 #7DDC41
monochromatic
#261989 #3423BD #5241DC #8175E6 #B0A8EF

Accessibility & contrast

On white

6.67
#5241DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5241DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241DC
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241DC#FFFFFF#000000##FFFFFF
##5241DC1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0056D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5241dc;
/* rgb */ color: rgb(82, 65, 220);
/* oklch */ color: oklch(49.7% 0.224 279.4);
Tailwind
colors: {
  custom: {
    50: '#9278e8',
    500: '#5241dc',
    950: '#000000',
  },
}
SCSS
$custom: #5241dc;
$custom-light: #9278e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5241dc",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 246.581,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49727,
    "c": 0.22388,
    "h": 279.4
  },
  "luminance": 0.10742
}

Semantic roles & 50–950 ramp

primary
#5241DC
secondary
#D5DD9C
accent
#EC3CD8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5241DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5241DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva