#5242BD#5242BD

#5242BD is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.1% C 0.184 H 282.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5242BD
RGBrgb(82, 66, 189)
HSLhsl(248, 48%, 50%)
HSVhsv(248, 65%, 74%)
CMYKcmyk(56.6%, 65.1%, 0%, 25.9%)
CIE-LABlab(36.67, 40.79, -62.62)
CIE-LCHlch(36.67, 74.74, 303.08°)
OKLaboklab(47.13% 0.0403 -0.18)
OKLCHoklch(47.13% 0.184 282.6)
XYZxyz(14.6104, 9.3635, 49.1717)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242BD #ADBD42
analogous
#426FBD #5242BD #9042BD
triadic
#5242BD #BD5242 #42BD52
tetradic
#5242BD #BD426F #ADBD42 #42BD90
square
#5242BD #BD426F #ADBD42 #42BD90
split-complementary
#5242BD #BD9042 #6FBD42
monochromatic
#2B2262 #3E3290 #5242BD #7C6FCD #A59DDD

Accessibility & contrast

On white

7.31
#5242BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5242BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5242BD
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242BD#FFFFFF#000000##FFFFFF
##5242BD1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#1B6179
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5242bd;
/* rgb */ color: rgb(82, 66, 189);
/* oklch */ color: oklch(47.1% 0.184 282.6);
Tailwind
colors: {
  custom: {
    50: '#8d77d2',
    500: '#5242bd',
    950: '#000000',
  },
}
SCSS
$custom: #5242bd;
$custom-light: #8d77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5242bd",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 247.805,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.47134,
    "c": 0.18449,
    "h": 282.6
  },
  "luminance": 0.09364
}

Semantic roles & 50–950 ramp

primary
#5242BD
secondary
#C2C992
accent
#D850C6
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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