#5241BD#5241BD

#5241BD is a mid, vivid blue. Relative luminance 0.092; OKLCH L 47.0% C 0.186 H 282.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5241BD
RGBrgb(82, 65, 189)
HSLhsl(248, 49%, 50%)
HSVhsv(248, 66%, 74%)
CMYKcmyk(56.6%, 65.6%, 0%, 25.9%)
CIE-LABlab(36.46, 41.38, -62.98)
CIE-LCHlch(36.46, 75.36, 303.31°)
OKLaboklab(46.98% 0.0412 -0.1811)
OKLCHoklch(46.98% 0.186 282.8)
XYZxyz(14.5524, 9.2476, 49.1524)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241BD #ACBD41
analogous
#416EBD #5241BD #9041BD
triadic
#5241BD #BD5241 #41BD52
tetradic
#5241BD #BD416E #ACBD41 #41BD90
square
#5241BD #BD416E #ACBD41 #41BD90
split-complementary
#5241BD #BD9041 #6EBD41
monochromatic
#2A2262 #3E318F #5241BD #7B6ECD #A59CDD

Accessibility & contrast

On white

7.37
#5241BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5241BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241BD
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241BD#FFFFFF#000000##FFFFFF
##5241BD1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#1B6079
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5241bd;
/* rgb */ color: rgb(82, 65, 189);
/* oklch */ color: oklch(47.0% 0.186 282.8);
Tailwind
colors: {
  custom: {
    50: '#8d77d2',
    500: '#5241bd',
    950: '#000000',
  },
}
SCSS
$custom: #5241bd;
$custom-light: #8d77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5241bd",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 248.226,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46976,
    "c": 0.18571,
    "h": 282.8
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#5241BD
secondary
#C1C991
accent
#D84FC6
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5241BD

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

Preview Lab → · Contrast checker → · Palette generator →

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