#5251B2#5251B2

#5251B2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.150 H 279.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5251B2
RGBrgb(82, 81, 178)
HSLhsl(241, 39%, 51%)
HSVhsv(241, 54%, 70%)
CMYKcmyk(53.9%, 54.5%, 0%, 30.2%)
CIE-LABlab(39.40, 28.11, -51.73)
CIE-LCHlch(39.40, 58.87, 298.51°)
OKLaboklab(48.88% 0.0254 -0.1479)
OKLCHoklch(48.88% 0.15 279.7)
XYZxyz(14.4555, 10.8922, 43.4515)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251B2 #B1B251
analogous
#5180B2 #5251B2 #8251B2
triadic
#5251B2 #B25251 #51B252
tetradic
#5251B2 #B25180 #B1B251 #51B282
square
#5251B2 #B25180 #B1B251 #51B282
split-complementary
#5251B2 #B28251 #80B251
monochromatic
#2A2A5F #3D3D89 #5251B2 #7C7BC5 #A6A6D8

Accessibility & contrast

On white

6.61
#5251B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5251B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251B2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251B2#FFFFFF#000000##FFFFFF
##5251B21.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B5
Deuteranopia (green-blind)
#0159B0
Tritanopia (blue-blind)
#276779
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5251b2;
/* rgb */ color: rgb(82, 81, 178);
/* oklch */ color: oklch(48.9% 0.150 279.7);
Tailwind
colors: {
  custom: {
    50: '#8a82ca',
    500: '#5251b2',
    950: '#000000',
  },
}
SCSS
$custom: #5251b2;
$custom-light: #8a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5251b2",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 240.619,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.15011,
    "h": 279.7
  },
  "luminance": 0.10893
}

Semantic roles & 50–950 ramp

primary
#5251B2
secondary
#C4C59A
accent
#CF59CD
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5251B2

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

Preview Lab → · Contrast checker → · Palette generator →

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