#5254CA#5254CA

#5254CA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.2% C 0.179 H 277.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5254CA
RGBrgb(82, 84, 202)
HSLhsl(239, 53%, 56%)
HSVhsv(239, 59%, 79%)
CMYKcmyk(59.4%, 58.4%, 0%, 20.8%)
CIE-LABlab(41.84, 34.09, -61.79)
CIE-LCHlch(41.84, 70.57, 298.88°)
OKLaboklab(51.24% 0.0227 -0.1775)
OKLCHoklch(51.24% 0.179 277.3)
XYZxyz(17.3072, 12.3975, 57.3466)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254CA #CAC852
analogous
#5290CA #5254CA #8C52CA
triadic
#5254CA #CA5254 #54CA52
tetradic
#5254CA #CA5290 #CAC852 #52CA8C
square
#5254CA #CA5290 #CAC852 #52CA8C
split-complementary
#5254CA #CA8C52 #90CA52
monochromatic
#26277C #3436AB #5254CA #8182D8 #B0B1E7

Accessibility & contrast

On white

6.03
#5254CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5254CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254CA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254CA#FFFFFF#000000##FFFFFF
##5254CA1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5254ca;
/* rgb */ color: rgb(82, 84, 202);
/* oklch */ color: oklch(51.2% 0.179 277.3);
Tailwind
colors: {
  custom: {
    50: '#8e84db',
    500: '#5254ca',
    950: '#000000',
  },
}
SCSS
$custom: #5254ca;
$custom-light: #8e84db;
$custom-dark: #000000;
JSON
{
  "hex": "#5254ca",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 239,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51236,
    "c": 0.17895,
    "h": 277.3
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#5254CA
secondary
#D5D4A3
accent
#DA4BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5254CA

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

Preview Lab → · Contrast checker → · Palette generator →

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