#5242CD#5242CD

#5242CD is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.205 H 280.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5242CD
RGBrgb(82, 66, 205)
HSLhsl(247, 58%, 53%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(60%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.02, 45.78, -69.76)
CIE-LCHlch(38.02, 83.44, 303.27°)
OKLaboklab(48.52% 0.0382 -0.201)
OKLCHoklch(48.52% 0.205 280.8)
XYZxyz(16.4439, 10.0969, 58.8281)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242CD #BDCD42
analogous
#4278CD #5242CD #9742CD
triadic
#5242CD #CD5242 #42CD52
tetradic
#5242CD #CD4278 #BDCD42 #42CD97
square
#5242CD #CD4278 #BDCD42 #42CD97
split-complementary
#5242CD #CD9742 #78CD42
monochromatic
#291F76 #3A2CA6 #5242CD #7E72DA #ABA3E7

Accessibility & contrast

On white

6.95
#5242CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5242CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242CD
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242CD#FFFFFF#000000##FFFFFF
##5242CD1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5242cd;
/* rgb */ color: rgb(82, 66, 205);
/* oklch */ color: oklch(48.5% 0.205 280.8);
Tailwind
colors: {
  custom: {
    50: '#9078dd',
    500: '#5242cd',
    950: '#000000',
  },
}
SCSS
$custom: #5242cd;
$custom-light: #9078dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5242cd",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 246.906,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.20459,
    "h": 280.8
  },
  "luminance": 0.10098
}

Semantic roles & 50–950 ramp

primary
#5242CD
secondary
#CCD397
accent
#E146D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5242CD

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

Preview Lab → · Contrast checker → · Palette generator →

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