#5254D7#5254D7

#5254D7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.3% C 0.196 H 276.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5254D7
RGBrgb(82, 84, 215)
HSLhsl(239, 62%, 58%)
HSVhsv(239, 62%, 84%)
CMYKcmyk(61.9%, 60.9%, 0%, 15.7%)
CIE-LABlab(42.82, 38.36, -67.67)
CIE-LCHlch(42.82, 77.78, 299.54°)
OKLaboklab(52.27% 0.0224 -0.1948)
OKLCHoklch(52.27% 0.196 276.5)
XYZxyz(18.9118, 13.0393, 65.7970)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254D7 #D7D552
analogous
#5296D7 #5254D7 #9252D7
triadic
#5254D7 #D75254 #54D752
tetradic
#5254D7 #D75296 #D7D552 #52D792
square
#5254D7 #D75296 #D7D552 #52D792
split-complementary
#5254D7 #D79252 #96D752
monochromatic
#21228E #2C2EC0 #5254D7 #8485E2 #B5B6EE

Accessibility & contrast

On white

5.82
#5254D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5254D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254D7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254D7#FFFFFF#000000##FFFFFF
##5254D71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5254d7;
/* rgb */ color: rgb(82, 84, 215);
/* oklch */ color: oklch(52.3% 0.196 276.5);
Tailwind
colors: {
  custom: {
    50: '#9084e4',
    500: '#5254d7',
    950: '#000000',
  },
}
SCSS
$custom: #5254d7;
$custom-light: #9084e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5254d7",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 239.098,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52267,
    "c": 0.19607,
    "h": 276.5
  },
  "luminance": 0.13041
}

Semantic roles & 50–950 ramp

primary
#5254D7
secondary
#DDDCA8
accent
#E342E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254D7

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

Preview Lab → · Contrast checker → · Palette generator →

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