#5241D8#5241D8

#5241D8 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.219 H 279.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5241D8
RGBrgb(82, 65, 216)
HSLhsl(247, 66%, 55%)
HSVhsv(247, 70%, 85%)
CMYKcmyk(62%, 69.9%, 0%, 15.3%)
CIE-LABlab(38.78, 49.74, -74.86)
CIE-LCHlch(38.78, 89.87, 303.60°)
OKLaboklab(49.36% 0.0372 -0.2159)
OKLCHoklch(49.36% 0.219 279.8)
XYZxyz(17.7607, 10.5309, 66.0492)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241D8 #C7D841
analogous
#417BD8 #5241D8 #9E41D8
triadic
#5241D8 #D85241 #41D852
tetradic
#5241D8 #D8417B #C7D841 #41D89E
square
#5241D8 #D8417B #C7D841 #41D89E
split-complementary
#5241D8 #D89E41 #7BD841
monochromatic
#271B84 #3625B6 #5241D8 #8074E2 #AEA7ED

Accessibility & contrast

On white

6.76
#5241D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5241D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241D8
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241D8#FFFFFF#000000##FFFFFF
##5241D81.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5241d8;
/* rgb */ color: rgb(82, 65, 216);
/* oklch */ color: oklch(49.4% 0.219 279.8);
Tailwind
colors: {
  custom: {
    50: '#9278e5',
    500: '#5241d8',
    950: '#000000',
  },
}
SCSS
$custom: #5241d8;
$custom-light: #9278e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5241d8",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 246.755,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.4936,
    "c": 0.21909,
    "h": 279.8
  },
  "luminance": 0.10532
}

Semantic roles & 50–950 ramp

primary
#5241D8
secondary
#D3DA9B
accent
#E93FD6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5241D8

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

Preview Lab → · Contrast checker → · Palette generator →

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