#5241DF#5241DF

#5241DF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.227 H 279.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5241DF
RGBrgb(82, 65, 223)
HSLhsl(246, 71%, 56%)
HSVhsv(246, 71%, 87%)
CMYKcmyk(63.2%, 70.9%, 0%, 12.5%)
CIE-LABlab(39.41, 51.88, -77.83)
CIE-LCHlch(39.41, 93.53, 303.69°)
OKLaboklab(50.01% 0.036 -0.2246)
OKLCHoklch(50.01% 0.227 279.1)
XYZxyz(18.6850, 10.9007, 70.9171)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241DF #CEDF41
analogous
#417FDF #5241DF #A141DF
triadic
#5241DF #DF5241 #41DF52
tetradic
#5241DF #DF417F #CEDF41 #41DFA1
square
#5241DF #DF417F #CEDF41 #41DFA1
split-complementary
#5241DF #DFA141 #7FDF41
monochromatic
#25188E #3221C2 #5241DF #8275E8 #B1AAF1

Accessibility & contrast

On white

6.60
#5241DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5241DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5241DF
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241DF#FFFFFF#000000##FFFFFF
##5241DF1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0056DC
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5241df;
/* rgb */ color: rgb(82, 65, 223);
/* oklch */ color: oklch(50.0% 0.227 279.1);
Tailwind
colors: {
  custom: {
    50: '#9378ea',
    500: '#5241df',
    950: '#000000',
  },
}
SCSS
$custom: #5241df;
$custom-light: #9378ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5241df",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 246.456,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50005,
    "c": 0.22745,
    "h": 279.1
  },
  "luminance": 0.10902
}

Semantic roles & 50–950 ramp

primary
#5241DF
secondary
#D7DE9D
accent
#EE3ADB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5241DF

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

Preview Lab → · Contrast checker → · Palette generator →

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