#5254DE#5254DE

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

Color values

HEX#5254DE
RGBrgb(82, 84, 222)
HSLhsl(239, 68%, 60%)
HSVhsv(239, 63%, 87%)
CMYKcmyk(63.1%, 62.2%, 0%, 12.9%)
CIE-LABlab(43.37, 40.65, -70.77)
CIE-LCHlch(43.37, 81.62, 299.87°)
OKLaboklab(52.84% 0.022 -0.2039)
OKLCHoklch(52.84% 0.205 276.2)
XYZxyz(19.8305, 13.4068, 70.6358)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254DE #DEDC52
analogous
#529ADE #5254DE #9652DE
triadic
#5254DE #DE5254 #54DE52
tetradic
#5254DE #DE529A #DEDC52 #52DE96
square
#5254DE #DE529A #DEDC52 #52DE96
split-complementary
#5254DE #DE9652 #9ADE52
monochromatic
#1D1F99 #2729CC #5254DE #8587E8 #B9BAF2

Accessibility & contrast

On white

5.70
#5254DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5254DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254DE
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254DE#FFFFFF#000000##FFFFFF
##5254DE1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0060DB
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5254de;
/* rgb */ color: rgb(82, 84, 222);
/* oklch */ color: oklch(52.8% 0.205 276.2);
Tailwind
colors: {
  custom: {
    50: '#9184e9',
    500: '#5254de',
    950: '#000000',
  },
}
SCSS
$custom: #5254de;
$custom-light: #9184e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5254de",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 239.143,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5284,
    "c": 0.20508,
    "h": 276.2
  },
  "luminance": 0.13408
}

Semantic roles & 50–950 ramp

primary
#5254DE
secondary
#E1E0AB
accent
#E83DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254DE

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

Preview Lab → · Contrast checker → · Palette generator →

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