#5242CB#5242CB

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

Color values

HEX#5242CB
RGBrgb(82, 66, 203)
HSLhsl(247, 57%, 53%)
HSVhsv(247, 67%, 80%)
CMYKcmyk(59.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.84, 45.16, -68.88)
CIE-LCHlch(37.84, 82.37, 303.25°)
OKLaboklab(48.34% 0.0385 -0.1984)
OKLCHoklch(48.34% 0.202 281)
XYZxyz(16.2040, 10.0009, 57.5648)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242CB #BBCB42
analogous
#4277CB #5242CB #9642CB
triadic
#5242CB #CB5242 #42CB52
tetradic
#5242CB #CB4277 #BBCB42 #42CB96
square
#5242CB #CB4277 #BBCB42 #42CB96
split-complementary
#5242CB #CB9642 #77CB42
monochromatic
#292073 #3B2DA3 #5242CB #7E72D8 #AAA2E5

Accessibility & contrast

On white

7.00
#5242CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5242CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5242CB
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242CB#FFFFFF#000000##FFFFFF
##5242CB1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5242cb;
/* rgb */ color: rgb(82, 66, 203);
/* oklch */ color: oklch(48.3% 0.202 281.0);
Tailwind
colors: {
  custom: {
    50: '#8f78dc',
    500: '#5242cb',
    950: '#000000',
  },
}
SCSS
$custom: #5242cb;
$custom-light: #8f78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5242cb",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 247.007,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4834,
    "c": 0.20211,
    "h": 281
  },
  "luminance": 0.10002
}

Semantic roles & 50–950 ramp

primary
#5242CB
secondary
#CBD297
accent
#E048CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5242CB

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

Preview Lab → · Contrast checker → · Palette generator →

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