#5241BA#5241BA

#5241BA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.182 H 283.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5241BA
RGBrgb(82, 65, 186)
HSLhsl(248, 48%, 49%)
HSVhsv(248, 65%, 73%)
CMYKcmyk(55.9%, 65.1%, 0%, 27.1%)
CIE-LABlab(36.21, 40.45, -61.62)
CIE-LCHlch(36.21, 73.71, 303.28°)
OKLaboklab(46.72% 0.0415 -0.1771)
OKLCHoklch(46.72% 0.182 283.2)
XYZxyz(14.2302, 9.1187, 47.4551)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241BA #A9BA41
analogous
#416DBA #5241BA #8F41BA
triadic
#5241BA #BA5241 #41BA52
tetradic
#5241BA #BA416D #A9BA41 #41BA8F
square
#5241BA #BA416D #A9BA41 #41BA8F
split-complementary
#5241BA #BA8F41 #6DBA41
monochromatic
#2A215F #3E318D #5241BA #7A6CCC #A39ADC

Accessibility & contrast

On white

7.44
#5241BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5241BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241BA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241BA#FFFFFF#000000##FFFFFF
##5241BA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#205F78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5241ba;
/* rgb */ color: rgb(82, 65, 186);
/* oklch */ color: oklch(46.7% 0.182 283.2);
Tailwind
colors: {
  custom: {
    50: '#8d77d0',
    500: '#5241ba',
    950: '#000000',
  },
}
SCSS
$custom: #5241ba;
$custom-light: #8d77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5241ba",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 248.43,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.18188,
    "h": 283.2
  },
  "luminance": 0.0912
}

Semantic roles & 50–950 ramp

primary
#5241BA
secondary
#C0C88F
accent
#D850C5
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5241BA

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

Preview Lab → · Contrast checker → · Palette generator →

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