#5240CB#5240CB

#5240CB is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.204 H 281.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5240CB
RGBrgb(82, 64, 203)
HSLhsl(248, 57%, 52%)
HSVhsv(248, 68%, 80%)
CMYKcmyk(59.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.43, 46.29, -69.57)
CIE-LCHlch(37.43, 83.56, 303.64°)
OKLaboklab(48.04% 0.0401 -0.2004)
OKLCHoklch(48.04% 0.204 281.3)
XYZxyz(16.0892, 9.7713, 57.5266)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CB #B9CB40
analogous
#4073CB #5240CB #9840CB
triadic
#5240CB #CB5240 #40CB52
tetradic
#5240CB #CB4073 #B9CB40 #40CB98
square
#5240CB #CB4073 #B9CB40 #40CB98
split-complementary
#5240CB #CB9840 #73CB40
monochromatic
#2A1F72 #3B2CA2 #5240CB #7E70D8 #A9A0E5

Accessibility & contrast

On white

7.11
#5240CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5240CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240CB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CB#FFFFFF#000000##FFFFFF
##5240CB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5240cb;
/* rgb */ color: rgb(82, 64, 203);
/* oklch */ color: oklch(48.0% 0.204 281.3);
Tailwind
colors: {
  custom: {
    50: '#8f76dc',
    500: '#5240cb',
    950: '#000000',
  },
}
SCSS
$custom: #5240cb;
$custom-light: #8f76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5240cb",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 247.77,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48042,
    "c": 0.20439,
    "h": 281.3
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#5240CB
secondary
#CAD295
accent
#E047CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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