#5241D2#5241D2

#5241D2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.212 H 280.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5241D2
RGBrgb(82, 65, 210)
HSLhsl(247, 62%, 54%)
HSVhsv(247, 69%, 82%)
CMYKcmyk(61%, 69%, 0%, 17.6%)
CIE-LABlab(38.25, 47.89, -72.28)
CIE-LCHlch(38.25, 86.70, 303.53°)
OKLaboklab(48.82% 0.0382 -0.2083)
OKLCHoklch(48.82% 0.212 280.4)
XYZxyz(16.9992, 10.2263, 62.0384)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241D2 #C1D241
analogous
#4179D2 #5241D2 #9A41D2
triadic
#5241D2 #D25241 #41D252
tetradic
#5241D2 #D24179 #C1D241 #41D29A
square
#5241D2 #D24179 #C1D241 #41D29A
split-complementary
#5241D2 #D29A41 #79D241
monochromatic
#281D7B #3829AD #5241D2 #7F72DE #ACA4E9

Accessibility & contrast

On white

6.90
#5241D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5241D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241D2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241D2#FFFFFF#000000##FFFFFF
##5241D21.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5241d2;
/* rgb */ color: rgb(82, 65, 210);
/* oklch */ color: oklch(48.8% 0.212 280.4);
Tailwind
colors: {
  custom: {
    50: '#9177e1',
    500: '#5241d2',
    950: '#000000',
  },
}
SCSS
$custom: #5241d2;
$custom-light: #9177e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5241d2",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 247.034,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48815,
    "c": 0.21183,
    "h": 280.4
  },
  "luminance": 0.10228
}

Semantic roles & 50–950 ramp

primary
#5241D2
secondary
#CFD698
accent
#E543D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5241D2

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

Preview Lab → · Contrast checker → · Palette generator →

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