#5254CE#5254CE

#5254CE is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.5% C 0.184 H 277.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5254CE
RGBrgb(82, 84, 206)
HSLhsl(239, 56%, 56%)
HSVhsv(239, 60%, 81%)
CMYKcmyk(60.2%, 59.2%, 0%, 19.2%)
CIE-LABlab(42.14, 35.40, -63.62)
CIE-LCHlch(42.14, 72.80, 299.09°)
OKLaboklab(51.55% 0.0227 -0.1829)
OKLCHoklch(51.55% 0.184 277.1)
XYZxyz(17.7870, 12.5894, 59.8732)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254CE #CECC52
analogous
#5292CE #5254CE #8E52CE
triadic
#5254CE #CE5254 #54CE52
tetradic
#5254CE #CE5292 #CECC52 #52CE8E
square
#5254CE #CE5292 #CECC52 #52CE8E
split-complementary
#5254CE #CE8E52 #92CE52
monochromatic
#252681 #3234B1 #5254CE #8283DC #B1B2E9

Accessibility & contrast

On white

5.97
#5254CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5254CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254CE
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254CE#FFFFFF#000000##FFFFFF
##5254CE1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5254ce;
/* rgb */ color: rgb(82, 84, 206);
/* oklch */ color: oklch(51.5% 0.184 277.1);
Tailwind
colors: {
  custom: {
    50: '#8f84de',
    500: '#5254ce',
    950: '#000000',
  },
}
SCSS
$custom: #5254ce;
$custom-light: #8f84de;
$custom-dark: #000000;
JSON
{
  "hex": "#5254ce",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 239.032,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.18427,
    "h": 277.1
  },
  "luminance": 0.12591
}

Semantic roles & 50–950 ramp

primary
#5254CE
secondary
#D7D7A4
accent
#DD49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5254CE

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

Preview Lab → · Contrast checker → · Palette generator →

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