#5246BB#5246BB

#5246BB is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.6% C 0.177 H 282.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5246BB
RGBrgb(82, 70, 187)
HSLhsl(246, 46%, 50%)
HSVhsv(246, 63%, 73%)
CMYKcmyk(56.1%, 62.6%, 0%, 26.7%)
CIE-LABlab(37.41, 37.79, -60.25)
CIE-LCHlch(37.41, 71.12, 302.09°)
OKLaboklab(47.62% 0.0367 -0.1731)
OKLCHoklch(47.62% 0.177 282)
XYZxyz(14.6367, 9.7611, 48.1169)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246BB #AFBB46
analogous
#4674BB #5246BB #8C46BB
triadic
#5246BB #BB5246 #46BB52
tetradic
#5246BB #BB4674 #AFBB46 #46BB8C
square
#5246BB #BB4674 #AFBB46 #46BB8C
split-complementary
#5246BB #BB8C46 #74BB46
monochromatic
#2B2462 #3E358F #5246BB #7C73CB #A6A0DC

Accessibility & contrast

On white

7.11
#5246BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5246BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5246BB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246BB#FFFFFF#000000##FFFFFF
##5246BB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#1D637A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5246bb;
/* rgb */ color: rgb(82, 70, 187);
/* oklch */ color: oklch(47.6% 0.177 282.0);
Tailwind
colors: {
  custom: {
    50: '#8c7ad0',
    500: '#5246bb',
    950: '#000000',
  },
}
SCSS
$custom: #5246bb;
$custom-light: #8c7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5246bb",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 246.154,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47619,
    "c": 0.1769,
    "h": 282
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#5246BB
secondary
#C3C894
accent
#D652C8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5246BB

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

Preview Lab → · Contrast checker → · Palette generator →

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