#5242BB#5242BB

#5242BB is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.0% C 0.182 H 282.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5242BB
RGBrgb(82, 66, 187)
HSLhsl(248, 48%, 50%)
HSVhsv(248, 65%, 73%)
CMYKcmyk(56.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(36.51, 40.17, -61.71)
CIE-LCHlch(36.51, 73.64, 303.06°)
OKLaboklab(46.97% 0.0405 -0.1774)
OKLCHoklch(46.97% 0.182 282.9)
XYZxyz(14.3948, 9.2772, 48.0362)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242BB #ABBB42
analogous
#426FBB #5242BB #8F42BB
triadic
#5242BB #BB5242 #42BB52
tetradic
#5242BB #BB426F #ABBB42 #42BB8F
square
#5242BB #BB426F #ABBB42 #42BB8F
split-complementary
#5242BB #BB8F42 #6FBB42
monochromatic
#2A2261 #3E328E #5242BB #7B6ECC #A49CDC

Accessibility & contrast

On white

7.35
#5242BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5242BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5242BB
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242BB#FFFFFF#000000##FFFFFF
##5242BB1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#1E6078
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5242bb;
/* rgb */ color: rgb(82, 66, 187);
/* oklch */ color: oklch(47.0% 0.182 282.9);
Tailwind
colors: {
  custom: {
    50: '#8d77d0',
    500: '#5242bb',
    950: '#000000',
  },
}
SCSS
$custom: #5242bb;
$custom-light: #8d77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5242bb",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 247.934,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46966,
    "c": 0.18193,
    "h": 282.9
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#5242BB
secondary
#C1C891
accent
#D750C6
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5242BB

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

Preview Lab → · Contrast checker → · Palette generator →

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