#5254DF#5254DF

#5254DF is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 52.9% C 0.206 H 276.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5254DF
RGBrgb(82, 84, 223)
HSLhsl(239, 69%, 60%)
HSVhsv(239, 63%, 87%)
CMYKcmyk(63.2%, 62.3%, 0%, 12.5%)
CIE-LABlab(43.45, 40.98, -71.21)
CIE-LCHlch(43.45, 82.16, 299.92°)
OKLaboklab(52.92% 0.0219 -0.2052)
OKLCHoklch(52.92% 0.206 276.1)
XYZxyz(19.9649, 13.4605, 71.3438)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254DF #DFDD52
analogous
#529BDF #5254DF #9752DF
triadic
#5254DF #DF5254 #54DF52
tetradic
#5254DF #DF529B #DFDD52 #52DF97
square
#5254DF #DF529B #DFDD52 #52DF97
split-complementary
#5254DF #DF9752 #9BDF52
monochromatic
#1D1E9A #2628CE #5254DF #8687E9 #B9BAF2

Accessibility & contrast

On white

5.69
#5254DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#5254DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254DF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254DF#FFFFFF#000000##FFFFFF
##5254DF1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0060DC
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5254df;
/* rgb */ color: rgb(82, 84, 223);
/* oklch */ color: oklch(52.9% 0.206 276.1);
Tailwind
colors: {
  custom: {
    50: '#9284ea',
    500: '#5254df',
    950: '#000000',
  },
}
SCSS
$custom: #5254df;
$custom-light: #9284ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5254df",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 239.149,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.20636,
    "h": 276.1
  },
  "luminance": 0.13462
}

Semantic roles & 50–950 ramp

primary
#5254DF
secondary
#E2E1AB
accent
#E93CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254DF

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

Preview Lab → · Contrast checker → · Palette generator →

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