#5240CA#5240CA

#5240CA is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.203 H 281.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5240CA
RGBrgb(82, 64, 202)
HSLhsl(248, 57%, 52%)
HSVhsv(248, 68%, 79%)
CMYKcmyk(59.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.34, 45.98, -69.13)
CIE-LCHlch(37.34, 83.02, 303.63°)
OKLaboklab(47.95% 0.0403 -0.1991)
OKLCHoklch(47.95% 0.203 281.4)
XYZxyz(15.9704, 9.7238, 56.9010)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240CA #B8CA40
analogous
#4073CA #5240CA #9740CA
triadic
#5240CA #CA5240 #40CA52
tetradic
#5240CA #CA4073 #B8CA40 #40CA97
square
#5240CA #CA4073 #B8CA40 #40CA97
split-complementary
#5240CA #CA9740 #73CA40
monochromatic
#2A1F70 #3C2CA0 #5240CA #7D70D7 #A9A0E5

Accessibility & contrast

On white

7.13
#5240CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5240CA
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240CA#FFFFFF#000000##FFFFFF
##5240CA1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5240ca;
/* rgb */ color: rgb(82, 64, 202);
/* oklch */ color: oklch(48.0% 0.203 281.4);
Tailwind
colors: {
  custom: {
    50: '#8f76db',
    500: '#5240ca',
    950: '#000000',
  },
}
SCSS
$custom: #5240ca;
$custom-light: #8f76db;
$custom-dark: #000000;
JSON
{
  "hex": "#5240ca",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 247.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47953,
    "c": 0.20315,
    "h": 281.4
  },
  "luminance": 0.09725
}

Semantic roles & 50–950 ramp

primary
#5240CA
secondary
#C9D195
accent
#E048CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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