#5254CD#5254CD

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

Color values

HEX#5254CD
RGBrgb(82, 84, 205)
HSLhsl(239, 55%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(60%, 59%, 0%, 19.6%)
CIE-LABlab(42.06, 35.07, -63.16)
CIE-LCHlch(42.06, 72.24, 299.04°)
OKLaboklab(51.47% 0.0227 -0.1815)
OKLCHoklch(51.47% 0.183 277.1)
XYZxyz(17.6659, 12.5409, 59.2355)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254CD #CDCB52
analogous
#5292CD #5254CD #8E52CD
triadic
#5254CD #CD5254 #54CD52
tetradic
#5254CD #CD5292 #CDCB52 #52CD8E
square
#5254CD #CD5292 #CDCB52 #52CD8E
split-complementary
#5254CD #CD8E52 #92CD52
monochromatic
#252680 #3335AF #5254CD #8183DB #B1B2E8

Accessibility & contrast

On white

5.99
#5254CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5254CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254CD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254CD#FFFFFF#000000##FFFFFF
##5254CD1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5254cd;
/* rgb */ color: rgb(82, 84, 205);
/* oklch */ color: oklch(51.5% 0.183 277.1);
Tailwind
colors: {
  custom: {
    50: '#8e84dd',
    500: '#5254cd',
    950: '#000000',
  },
}
SCSS
$custom: #5254cd;
$custom-light: #8e84dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5254cd",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 239.024,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.18294,
    "h": 277.1
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

primary
#5254CD
secondary
#D7D6A4
accent
#DC49DE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5254CD

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

Preview Lab → · Contrast checker → · Palette generator →

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