#5254D2#5254D2

#5254D2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.190 H 276.8°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5254D2
RGBrgb(82, 84, 210)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 61%, 82%)
CMYKcmyk(61%, 60%, 0%, 17.6%)
CIE-LABlab(42.44, 36.71, -65.43)
CIE-LCHlch(42.44, 75.02, 299.30°)
OKLaboklab(51.87% 0.0226 -0.1882)
OKLCHoklch(51.87% 0.19 276.8)
XYZxyz(18.2791, 12.7862, 62.4650)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254D2 #D2D052
analogous
#5294D2 #5254D2 #9052D2
triadic
#5254D2 #D25254 #54D252
tetradic
#5254D2 #D25294 #D2D052 #52D290
square
#5254D2 #D25294 #D2D052 #52D290
split-complementary
#5254D2 #D29052 #94D252
monochromatic
#232587 #3032B7 #5254D2 #8384DF #B3B4EB

Accessibility & contrast

On white

5.90
#5254D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5254D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254D2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254D2#FFFFFF#000000##FFFFFF
##5254D21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#005FCF
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5254d2;
/* rgb */ color: rgb(82, 84, 210);
/* oklch */ color: oklch(51.9% 0.190 276.8);
Tailwind
colors: {
  custom: {
    50: '#8f84e1',
    500: '#5254d2',
    950: '#000000',
  },
}
SCSS
$custom: #5254d2;
$custom-light: #8f84e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5254d2",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 239.063,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.18954,
    "h": 276.8
  },
  "luminance": 0.12788
}

Semantic roles & 50–950 ramp

primary
#5254D2
secondary
#DAD9A6
accent
#DF46E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5254D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5254D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva