#5241AC#5241AC

#5241AC is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.164 H 285.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5241AC
RGBrgb(82, 65, 172)
HSLhsl(250, 45%, 46%)
HSVhsv(250, 62%, 67%)
CMYKcmyk(52.3%, 62.2%, 0%, 32.5%)
CIE-LABlab(35.11, 36.09, -55.12)
CIE-LCHlch(35.11, 65.88, 303.21°)
OKLaboklab(45.57% 0.0427 -0.158)
OKLCHoklch(45.57% 0.164 285.1)
XYZxyz(12.8141, 8.5523, 39.9973)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241AC #9BAC41
analogous
#4166AC #5241AC #8841AC
triadic
#5241AC #AC5241 #41AC52
tetradic
#5241AC #AC4166 #9BAC41 #41AC88
square
#5241AC #AC4166 #9BAC41 #41AC88
split-complementary
#5241AC #AC8841 #66AC41
monochromatic
#281F53 #3D3080 #5241AC #7465C5 #9D92D6

Accessibility & contrast

On white

7.75
#5241AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5241AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241AC
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241AC#FFFFFF#000000##FFFFFF
##5241AC1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#2F5B70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5241ac;
/* rgb */ color: rgb(82, 65, 172);
/* oklch */ color: oklch(45.6% 0.164 285.1);
Tailwind
colors: {
  custom: {
    50: '#8a76c5',
    500: '#5241ac',
    950: '#000000',
  },
}
SCSS
$custom: #5241ac;
$custom-light: #8a76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5241ac",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 249.533,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45573,
    "c": 0.16367,
    "h": 285.1
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#5241AC
secondary
#B8C188
accent
#D553C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5241AC

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

Preview Lab → · Contrast checker → · Palette generator →

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