#5246BD#5246BD

#5246BD is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.8% C 0.180 H 281.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5246BD
RGBrgb(82, 70, 189)
HSLhsl(246, 47%, 51%)
HSVhsv(246, 63%, 74%)
CMYKcmyk(56.6%, 63%, 0%, 25.9%)
CIE-LABlab(37.57, 38.42, -61.17)
CIE-LCHlch(37.57, 72.23, 302.13°)
OKLaboklab(47.78% 0.0365 -0.1758)
OKLCHoklch(47.78% 0.18 281.7)
XYZxyz(14.8523, 9.8473, 49.2523)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5246BD #B1BD46
analogous
#4676BD #5246BD #8D46BD
triadic
#5246BD #BD5246 #46BD52
tetradic
#5246BD #BD4676 #B1BD46 #46BD8D
square
#5246BD #BD4676 #B1BD46 #46BD8D
split-complementary
#5246BD #BD8D46 #76BD46
monochromatic
#2A2465 #3D3492 #5246BD #7C73CD #A6A0DD

Accessibility & contrast

On white

7.07
#5246BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5246BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5246BD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5246BD#FFFFFF#000000##FFFFFF
##5246BD1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#1A637B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5246bd;
/* rgb */ color: rgb(82, 70, 189);
/* oklch */ color: oklch(47.8% 0.180 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d7ad2',
    500: '#5246bd',
    950: '#000000',
  },
}
SCSS
$custom: #5246bd;
$custom-light: #8d7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5246bd",
  "rgb": {
    "r": 82,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 246.05,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47783,
    "c": 0.17952,
    "h": 281.7
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#5246BD
secondary
#C4CA95
accent
#D751C9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5246BD

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

Preview Lab → · Contrast checker → · Palette generator →

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