#5241BF#5241BF

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

Color values

HEX#5241BF
RGBrgb(82, 65, 191)
HSLhsl(248, 50%, 50%)
HSVhsv(248, 66%, 75%)
CMYKcmyk(57.1%, 66%, 0%, 25.1%)
CIE-LABlab(36.62, 42.00, -63.88)
CIE-LCHlch(36.62, 76.46, 303.32°)
OKLaboklab(47.15% 0.0409 -0.1837)
OKLCHoklch(47.15% 0.188 282.6)
XYZxyz(14.7710, 9.3351, 50.3036)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241BF #AEBF41
analogous
#416FBF #5241BF #9141BF
triadic
#5241BF #BF5241 #41BF52
tetradic
#5241BF #BF416F #AEBF41 #41BF91
square
#5241BF #BF416F #AEBF41 #41BF91
split-complementary
#5241BF #BF9141 #6FBF41
monochromatic
#2B2264 #3E3192 #5241BF #7C6FCE #A59DDE

Accessibility & contrast

On white

7.32
#5241BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5241BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241BF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241BF#FFFFFF#000000##FFFFFF
##5241BF1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#17617A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5241bf;
/* rgb */ color: rgb(82, 65, 191);
/* oklch */ color: oklch(47.1% 0.188 282.6);
Tailwind
colors: {
  custom: {
    50: '#8d77d3',
    500: '#5241bf',
    950: '#000000',
  },
}
SCSS
$custom: #5241bf;
$custom-light: #8d77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5241bf",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 248.095,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47146,
    "c": 0.18826,
    "h": 282.6
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

primary
#5241BF
secondary
#C2CA92
accent
#D94FC6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5241BF

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

Preview Lab → · Contrast checker → · Palette generator →

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