#524EB5#524EB5

#524EB5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.158 H 280.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#524EB5
RGBrgb(82, 78, 181)
HSLhsl(242, 41%, 51%)
HSVhsv(242, 57%, 71%)
CMYKcmyk(54.7%, 56.9%, 0%, 29%)
CIE-LABlab(38.86, 30.96, -54.37)
CIE-LCHlch(38.86, 62.56, 299.66°)
OKLaboklab(48.55% 0.0288 -0.1557)
OKLCHoklch(48.55% 0.158 280.5)
XYZxyz(14.5420, 10.5779, 44.9826)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#524EB5 #B1B54E
analogous
#4E7DB5 #524EB5 #854EB5
triadic
#524EB5 #B5524E #4EB552
tetradic
#524EB5 #B54E7D #B1B54E #4EB585
square
#524EB5 #B54E7D #B1B54E #4EB585
split-complementary
#524EB5 #B5854E #7DB54E
monochromatic
#2A2860 #3D3A8B #524EB5 #7C79C7 #A6A4D9

Accessibility & contrast

On white

6.74
#524EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#524EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #524EB5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##524EB5#FFFFFF#000000##FFFFFF
##524EB51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#24667A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #524eb5;
/* rgb */ color: rgb(82, 78, 181);
/* oklch */ color: oklch(48.5% 0.158 280.5);
Tailwind
colors: {
  custom: {
    50: '#8b7fcc',
    500: '#524eb5',
    950: '#000000',
  },
}
SCSS
$custom: #524eb5;
$custom-light: #8b7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#524eb5",
  "rgb": {
    "r": 82,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 242.33,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.15835,
    "h": 280.5
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

primary
#524EB5
secondary
#C4C699
accent
#D157CC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0D0A13
muted
#7D7C82

Preview Lab

Preview with #524EB5

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

Preview Lab → · Contrast checker → · Palette generator →

#524EB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva