#5241BE#5241BE

#5241BE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.187 H 282.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5241BE
RGBrgb(82, 65, 190)
HSLhsl(248, 49%, 50%)
HSVhsv(248, 66%, 75%)
CMYKcmyk(56.8%, 65.8%, 0%, 25.5%)
CIE-LABlab(36.54, 41.69, -63.43)
CIE-LCHlch(36.54, 75.91, 303.31°)
OKLaboklab(47.06% 0.0411 -0.1824)
OKLCHoklch(47.06% 0.187 282.7)
XYZxyz(14.6614, 9.2912, 49.7260)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241BE #ADBE41
analogous
#416EBE #5241BE #9141BE
triadic
#5241BE #BE5241 #41BE52
tetradic
#5241BE #BE416E #ADBE41 #41BE91
square
#5241BE #BE416E #ADBE41 #41BE91
split-complementary
#5241BE #BE9141 #6EBE41
monochromatic
#2B2263 #3E3190 #5241BE #7C6FCE #A59CDD

Accessibility & contrast

On white

7.35
#5241BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5241BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241BE
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241BE#FFFFFF#000000##FFFFFF
##5241BE1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#19617A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5241be;
/* rgb */ color: rgb(82, 65, 190);
/* oklch */ color: oklch(47.1% 0.187 282.7);
Tailwind
colors: {
  custom: {
    50: '#8d77d3',
    500: '#5241be',
    950: '#000000',
  },
}
SCSS
$custom: #5241be;
$custom-light: #8d77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5241be",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 248.16,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.47061,
    "c": 0.18698,
    "h": 282.7
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

primary
#5241BE
secondary
#C2C991
accent
#D94FC6
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5241BE

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

Preview Lab → · Contrast checker → · Palette generator →

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