#5251BB#5251BB

#5251BB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.163 H 279.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5251BB
RGBrgb(82, 81, 187)
HSLhsl(241, 44%, 53%)
HSVhsv(241, 57%, 73%)
CMYKcmyk(56.1%, 56.7%, 0%, 26.7%)
CIE-LABlab(40.02, 31.03, -56.01)
CIE-LCHlch(40.02, 64.03, 298.99°)
OKLaboklab(49.55% 0.0257 -0.1605)
OKLCHoklch(49.55% 0.163 279.1)
XYZxyz(15.3889, 11.2655, 48.3676)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251BB #BABB51
analogous
#5185BB #5251BB #8751BB
triadic
#5251BB #BB5251 #51BB52
tetradic
#5251BB #BB5185 #BABB51 #51BB87
square
#5251BB #BB5185 #BABB51 #51BB87
split-complementary
#5251BB #BB8751 #85BB51
monochromatic
#2A2969 #3B3A95 #5251BB #7E7DCC #AAA9DD

Accessibility & contrast

On white

6.45
#5251BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5251BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251BB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251BB#FFFFFF#000000##FFFFFF
##5251BB1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#1B6A7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5251bb;
/* rgb */ color: rgb(82, 81, 187);
/* oklch */ color: oklch(49.5% 0.163 279.1);
Tailwind
colors: {
  custom: {
    50: '#8c82d0',
    500: '#5251bb',
    950: '#000000',
  },
}
SCSS
$custom: #5251bb;
$custom-light: #8c82d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5251bb",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 240.566,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49545,
    "c": 0.16256,
    "h": 279.1
  },
  "luminance": 0.11267
}

Semantic roles & 50–950 ramp

primary
#5251BB
secondary
#CACB9D
accent
#D454D2
background
#F9F7FC
surface
#F1EEF9
border
#CBC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5251BB

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

Preview Lab → · Contrast checker → · Palette generator →

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