#5254CC#5254CC

#5254CC is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.4% C 0.182 H 277.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5254CC
RGBrgb(82, 84, 204)
HSLhsl(239, 54%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(59.8%, 58.8%, 0%, 20%)
CIE-LABlab(41.99, 34.74, -62.70)
CIE-LCHlch(41.99, 71.69, 298.99°)
OKLaboklab(51.39% 0.0227 -0.1802)
OKLCHoklch(51.39% 0.182 277.2)
XYZxyz(17.5456, 12.4928, 58.6018)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254CC #CCCA52
analogous
#5291CC #5254CC #8D52CC
triadic
#5254CC #CC5254 #54CC52
tetradic
#5254CC #CC5291 #CCCA52 #52CC8D
square
#5254CC #CC5291 #CCCA52 #52CC8D
split-complementary
#5254CC #CC8D52 #91CC52
monochromatic
#25277E #3335AE #5254CC #8183DA #B1B1E8

Accessibility & contrast

On white

6.00
#5254CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5254CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254CC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254CC#FFFFFF#000000##FFFFFF
##5254CC1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5254cc;
/* rgb */ color: rgb(82, 84, 204);
/* oklch */ color: oklch(51.4% 0.182 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e84dc',
    500: '#5254cc',
    950: '#000000',
  },
}
SCSS
$custom: #5254cc;
$custom-light: #8e84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5254cc",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 239.016,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51391,
    "c": 0.18161,
    "h": 277.2
  },
  "luminance": 0.12494
}

Semantic roles & 50–950 ramp

primary
#5254CC
secondary
#D6D5A4
accent
#DB4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5254CC

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

Preview Lab → · Contrast checker → · Palette generator →

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