#5240BD#5240BD

#5240BD is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.8% C 0.187 H 283.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5240BD
RGBrgb(82, 64, 189)
HSLhsl(249, 49%, 50%)
HSVhsv(249, 66%, 74%)
CMYKcmyk(56.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(36.24, 41.96, -63.33)
CIE-LCHlch(36.24, 75.97, 303.53°)
OKLaboklab(46.82% 0.0421 -0.1821)
OKLCHoklch(46.82% 0.187 283)
XYZxyz(14.4956, 9.1339, 49.1334)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240BD #ABBD40
analogous
#406DBD #5240BD #9140BD
triadic
#5240BD #BD5240 #40BD52
tetradic
#5240BD #BD406D #ABBD40 #40BD91
square
#5240BD #BD406D #ABBD40 #40BD91
split-complementary
#5240BD #BD9140 #6DBD40
monochromatic
#2A2162 #3E318F #5240BD #7B6DCD #A49ADD

Accessibility & contrast

On white

7.43
#5240BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5240BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240BD
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240BD#FFFFFF#000000##FFFFFF
##5240BD1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0051BB
Tritanopia (blue-blind)
#1B6079
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5240bd;
/* rgb */ color: rgb(82, 64, 189);
/* oklch */ color: oklch(46.8% 0.187 283.0);
Tailwind
colors: {
  custom: {
    50: '#8d76d2',
    500: '#5240bd',
    950: '#000000',
  },
}
SCSS
$custom: #5240bd;
$custom-light: #8d76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5240bd",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 248.64,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46819,
    "c": 0.18693,
    "h": 283
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#5240BD
secondary
#C1C990
accent
#D94FC5
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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