#5241E8#5241E8

#5241E8 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.238 H 278.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5241E8
RGBrgb(82, 65, 232)
HSLhsl(246, 78%, 58%)
HSVhsv(246, 72%, 91%)
CMYKcmyk(64.7%, 72%, 0%, 9%)
CIE-LABlab(40.24, 54.62, -81.58)
CIE-LCHlch(40.24, 98.18, 303.80°)
OKLaboklab(50.85% 0.0343 -0.2356)
OKLCHoklch(50.85% 0.238 278.3)
XYZxyz(19.9308, 11.3990, 77.4782)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241E8 #D7E841
analogous
#4183E8 #5241E8 #A641E8
triadic
#5241E8 #E85241 #41E852
tetradic
#5241E8 #E84183 #D7E841 #41E8A6
square
#5241E8 #E84183 #D7E841 #41E8A6
split-complementary
#5241E8 #E8A641 #83E841
monochromatic
#21139C #2C19D2 #5241E8 #8478EF #B5AEF5

Accessibility & contrast

On white

6.40
#5241E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5241E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241E8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241E8#FFFFFF#000000##FFFFFF
##5241E81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065ED
Deuteranopia (green-blind)
#0058E5
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5241e8;
/* rgb */ color: rgb(82, 65, 232);
/* oklch */ color: oklch(50.8% 0.238 278.3);
Tailwind
colors: {
  custom: {
    50: '#9578f1',
    500: '#5241e8',
    950: '#000000',
  },
}
SCSS
$custom: #5241e8;
$custom-light: #9578f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5241e8",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 232
  },
  "hsl": {
    "h": 246.108,
    "s": 78.404,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50848,
    "c": 0.23804,
    "h": 278.3
  },
  "luminance": 0.11401
}

Semantic roles & 50–950 ramp

primary
#5241E8
secondary
#DDE4A1
accent
#F533E1
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5241E8

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

Preview Lab → · Contrast checker → · Palette generator →

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