#5254DB#5254DB

#5254DB is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.6% C 0.201 H 276.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5254DB
RGBrgb(82, 84, 219)
HSLhsl(239, 66%, 59%)
HSVhsv(239, 63%, 86%)
CMYKcmyk(62.6%, 61.6%, 0%, 14.1%)
CIE-LABlab(43.13, 39.67, -69.45)
CIE-LCHlch(43.13, 79.98, 299.73°)
OKLaboklab(52.59% 0.0222 -0.2)
OKLCHoklch(52.59% 0.201 276.3)
XYZxyz(19.4320, 13.2474, 68.5371)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254DB #DBD952
analogous
#5299DB #5254DB #9552DB
triadic
#5254DB #DB5254 #54DB52
tetradic
#5254DB #DB5299 #DBD952 #52DB95
square
#5254DB #DB5299 #DBD952 #52DB95
split-complementary
#5254DB #DB9552 #99DB52
monochromatic
#1F2094 #292CC6 #5254DB #8586E6 #B7B8F0

Accessibility & contrast

On white

5.75
#5254DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5254DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254DB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254DB#FFFFFF#000000##FFFFFF
##5254DB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0060D8
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5254db;
/* rgb */ color: rgb(82, 84, 219);
/* oklch */ color: oklch(52.6% 0.201 276.3);
Tailwind
colors: {
  custom: {
    50: '#9184e7',
    500: '#5254db',
    950: '#000000',
  },
}
SCSS
$custom: #5254db;
$custom-light: #9184e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5254db",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 239.124,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52593,
    "c": 0.20123,
    "h": 276.3
  },
  "luminance": 0.13249
}

Semantic roles & 50–950 ramp

primary
#5254DB
secondary
#DFDFAA
accent
#E63FE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254DB

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

Preview Lab → · Contrast checker → · Palette generator →

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