#5240BB#5240BB

#5240BB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.6% C 0.184 H 283.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5240BB
RGBrgb(82, 64, 187)
HSLhsl(249, 49%, 49%)
HSVhsv(249, 66%, 73%)
CMYKcmyk(56.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(36.08, 41.34, -62.43)
CIE-LCHlch(36.08, 74.88, 303.51°)
OKLaboklab(46.65% 0.0423 -0.1795)
OKLCHoklch(46.65% 0.184 283.3)
XYZxyz(14.2800, 9.0476, 47.9980)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240BB #A9BB40
analogous
#406CBB #5240BB #8F40BB
triadic
#5240BB #BB5240 #40BB52
tetradic
#5240BB #BB406C #A9BB40 #40BB8F
square
#5240BB #BB406C #A9BB40 #40BB8F
split-complementary
#5240BB #BB8F40 #6CBB40
monochromatic
#2A2160 #3E308D #5240BB #7A6CCD #A399DC

Accessibility & contrast

On white

7.47
#5240BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5240BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240BB
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240BB#FFFFFF#000000##FFFFFF
##5240BB1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#1E5F78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5240bb;
/* rgb */ color: rgb(82, 64, 187);
/* oklch */ color: oklch(46.6% 0.184 283.3);
Tailwind
colors: {
  custom: {
    50: '#8d76d0',
    500: '#5240bb',
    950: '#000000',
  },
}
SCSS
$custom: #5240bb;
$custom-light: #8d76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5240bb",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 248.78,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46649,
    "c": 0.18439,
    "h": 283.3
  },
  "luminance": 0.09048
}

Semantic roles & 50–950 ramp

primary
#5240BB
secondary
#C0C88F
accent
#D94FC4
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5240BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5240BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva