#5254DD#5254DD

#5254DD is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.8% C 0.204 H 276.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5254DD
RGBrgb(82, 84, 221)
HSLhsl(239, 67%, 59%)
HSVhsv(239, 63%, 87%)
CMYKcmyk(62.9%, 62%, 0%, 13.3%)
CIE-LABlab(43.29, 40.32, -70.33)
CIE-LCHlch(43.29, 81.07, 299.83°)
OKLaboklab(52.76% 0.0221 -0.2026)
OKLCHoklch(52.76% 0.204 276.2)
XYZxyz(19.6969, 13.3533, 69.9321)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254DD #DDDB52
analogous
#5299DD #5254DD #9652DD
triadic
#5254DD #DD5254 #54DD52
tetradic
#5254DD #DD5299 #DDDB52 #52DD96
square
#5254DD #DD5299 #DDDB52 #52DD96
split-complementary
#5254DD #DD9652 #99DD52
monochromatic
#1E1F97 #282ACA #5254DD #8587E7 #B8B9F1

Accessibility & contrast

On white

5.72
#5254DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5254DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254DD
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254DD#FFFFFF#000000##FFFFFF
##5254DD1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE1
Deuteranopia (green-blind)
#0060DA
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5254dd;
/* rgb */ color: rgb(82, 84, 221);
/* oklch */ color: oklch(52.8% 0.204 276.2);
Tailwind
colors: {
  custom: {
    50: '#9184e9',
    500: '#5254dd',
    950: '#000000',
  },
}
SCSS
$custom: #5254dd;
$custom-light: #9184e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5254dd",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 239.137,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52758,
    "c": 0.20381,
    "h": 276.2
  },
  "luminance": 0.13355
}

Semantic roles & 50–950 ramp

primary
#5254DD
secondary
#E0E0AA
accent
#E83EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254DD

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

Preview Lab → · Contrast checker → · Palette generator →

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