#5240DB#5240DB

#5240DB is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.224 H 279.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5240DB
RGBrgb(82, 64, 219)
HSLhsl(247, 68%, 55%)
HSVhsv(247, 71%, 86%)
CMYKcmyk(62.6%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.85, 51.20, -76.46)
CIE-LCHlch(38.85, 92.02, 303.81°)
OKLaboklab(49.5% 0.0374 -0.2206)
OKLCHoklch(49.5% 0.224 279.6)
XYZxyz(18.0952, 10.5737, 68.0915)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240DB #C9DB40
analogous
#407BDB #5240DB #A040DB
triadic
#5240DB #DB5240 #40DB52
tetradic
#5240DB #DB407B #C9DB40 #40DBA0
square
#5240DB #DB407B #C9DB40 #40DBA0
split-complementary
#5240DB #DBA040 #7BDB40
monochromatic
#261987 #3523BB #5240DB #8173E5 #AFA7EE

Accessibility & contrast

On white

6.74
#5240DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5240DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5240DB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240DB#FFFFFF#000000##FFFFFF
##5240DB1.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)
#0061E0
Deuteranopia (green-blind)
#0055D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5240db;
/* rgb */ color: rgb(82, 64, 219);
/* oklch */ color: oklch(49.5% 0.224 279.6);
Tailwind
colors: {
  custom: {
    50: '#9277e7',
    500: '#5240db',
    950: '#000000',
  },
}
SCSS
$custom: #5240db;
$custom-light: #9277e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5240db",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 246.968,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49495,
    "c": 0.22373,
    "h": 279.6
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#5240DB
secondary
#D4DC9B
accent
#EB3DD7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5240DB

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

Preview Lab → · Contrast checker → · Palette generator →

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