#5242CA#5242CA

#5242CA is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.201 H 281.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5242CA
RGBrgb(82, 66, 202)
HSLhsl(247, 56%, 53%)
HSVhsv(247, 67%, 79%)
CMYKcmyk(59.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(37.76, 44.85, -68.44)
CIE-LCHlch(37.76, 81.83, 303.23°)
OKLaboklab(48.25% 0.0386 -0.1971)
OKLCHoklch(48.25% 0.201 281.1)
XYZxyz(16.0852, 9.9534, 56.9392)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242CA #BACA42
analogous
#4276CA #5242CA #9642CA
triadic
#5242CA #CA5242 #42CA52
tetradic
#5242CA #CA4276 #BACA42 #42CA96
square
#5242CA #CA4276 #BACA42 #42CA96
split-complementary
#5242CA #CA9642 #76CA42
monochromatic
#2A2072 #3B2DA2 #5242CA #7E72D7 #AAA2E5

Accessibility & contrast

On white

7.02
#5242CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5242CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5242CA
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242CA#FFFFFF#000000##FFFFFF
##5242CA1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5242ca;
/* rgb */ color: rgb(82, 66, 202);
/* oklch */ color: oklch(48.3% 0.201 281.1);
Tailwind
colors: {
  custom: {
    50: '#8f78db',
    500: '#5242ca',
    950: '#000000',
  },
}
SCSS
$custom: #5242ca;
$custom-light: #8f78db;
$custom-dark: #000000;
JSON
{
  "hex": "#5242ca",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 247.059,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48253,
    "c": 0.20087,
    "h": 281.1
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#5242CA
secondary
#CAD196
accent
#DF48CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5242CA

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

Preview Lab → · Contrast checker → · Palette generator →

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