#5241EA#5241EA

#5241EA is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 51.0% C 0.240 H 278.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5241EA
RGBrgb(82, 65, 234)
HSLhsl(246, 80%, 59%)
HSVhsv(246, 72%, 92%)
CMYKcmyk(65%, 72.2%, 0%, 8.2%)
CIE-LABlab(40.43, 55.22, -82.41)
CIE-LCHlch(40.43, 99.20, 303.83°)
OKLaboklab(51.04% 0.0339 -0.238)
OKLCHoklch(51.04% 0.24 278.1)
XYZxyz(20.2165, 11.5133, 78.9829)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241EA #D9EA41
analogous
#4184EA #5241EA #A741EA
triadic
#5241EA #EA5241 #41EA52
tetradic
#5241EA #EA4184 #D9EA41 #41EAA7
square
#5241EA #EA4184 #D9EA41 #41EAA7
split-complementary
#5241EA #EAA741 #84EA41
monochromatic
#20129F #2B18D6 #5241EA #8478F0 #B6AFF6

Accessibility & contrast

On white

6.36
#5241EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5241EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241EA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241EA#FFFFFF#000000##FFFFFF
##5241EA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EF
Deuteranopia (green-blind)
#0058E7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5241ea;
/* rgb */ color: rgb(82, 65, 234);
/* oklch */ color: oklch(51.0% 0.240 278.1);
Tailwind
colors: {
  custom: {
    50: '#9578f2',
    500: '#5241ea',
    950: '#000000',
  },
}
SCSS
$custom: #5241ea;
$custom-light: #9578f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5241ea",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 246.036,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51037,
    "c": 0.24037,
    "h": 278.1
  },
  "luminance": 0.11515
}

Semantic roles & 50–950 ramp

primary
#5241EA
secondary
#DEE5A2
accent
#F731E3
background
#FAF7FF
surface
#F3EDFE
border
#CDC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5241EA

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

Preview Lab → · Contrast checker → · Palette generator →

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