#5251CA#5251CA

#5251CA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.183 H 278.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5251CA
RGBrgb(82, 81, 202)
HSLhsl(240, 53%, 55%)
HSVhsv(240, 60%, 79%)
CMYKcmyk(59.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(41.12, 35.93, -62.95)
CIE-LCHlch(41.12, 72.49, 299.71°)
OKLaboklab(50.71% 0.0255 -0.1809)
OKLCHoklch(50.71% 0.183 278)
XYZxyz(17.0794, 11.9417, 57.2706)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5251CA #C9CA51
analogous
#518CCA #5251CA #8E51CA
triadic
#5251CA #CA5251 #51CA52
tetradic
#5251CA #CA518C #C9CA51 #51CA8E
square
#5251CA #CA518C #C9CA51 #51CA8E
split-complementary
#5251CA #CA8E51 #8CCA51
monochromatic
#26257B #3534AA #5251CA #8180D8 #AFAFE7

Accessibility & contrast

On white

6.20
#5251CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5251CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5251CA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5251CA#FFFFFF#000000##FFFFFF
##5251CA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#006E86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5251ca;
/* rgb */ color: rgb(82, 81, 202);
/* oklch */ color: oklch(50.7% 0.183 278.0);
Tailwind
colors: {
  custom: {
    50: '#8e82db',
    500: '#5251ca',
    950: '#000000',
  },
}
SCSS
$custom: #5251ca;
$custom-light: #8e82db;
$custom-dark: #000000;
JSON
{
  "hex": "#5251ca",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 240.496,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.18274,
    "h": 278
  },
  "luminance": 0.11943
}

Semantic roles & 50–950 ramp

primary
#5251CA
secondary
#D4D5A2
accent
#DD4BDB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5251CA

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

Preview Lab → · Contrast checker → · Palette generator →

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