#5254EB#5254EB

#5254EB is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.9% C 0.221 H 275.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5254EB
RGBrgb(82, 84, 235)
HSLhsl(239, 79%, 62%)
HSVhsv(239, 65%, 92%)
CMYKcmyk(65.1%, 64.3%, 0%, 7.8%)
CIE-LABlab(44.42, 44.88, -76.42)
CIE-LCHlch(44.42, 88.63, 300.43°)
OKLaboklab(53.93% 0.0211 -0.2205)
OKLCHoklch(53.93% 0.221 275.5)
XYZxyz(21.6405, 14.1308, 80.1682)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254EB #EBE952
analogous
#52A0EB #5254EB #9D52EB
triadic
#5254EB #EB5254 #54EB52
tetradic
#5254EB #EB52A0 #EBE952 #52EB9D
square
#5254EB #EB52A0 #EBE952 #52EB9D
split-complementary
#5254EB #EB9D52 #A0EB52
monochromatic
#1416AE #1B1EE5 #5254EB #898AF1 #C0C0F8

Accessibility & contrast

On white

5.49
#5254EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5254EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254EB
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254EB#FFFFFF#000000##FFFFFF
##5254EB1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#0062E8
Tritanopia (blue-blind)
#007B98
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5254eb;
/* rgb */ color: rgb(82, 84, 235);
/* oklch */ color: oklch(53.9% 0.221 275.5);
Tailwind
colors: {
  custom: {
    50: '#9485f3',
    500: '#5254eb',
    950: '#000000',
  },
}
SCSS
$custom: #5254eb;
$custom-light: #9485f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5254eb",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 239.216,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53933,
    "c": 0.22148,
    "h": 275.5
  },
  "luminance": 0.14133
}

Semantic roles & 50–950 ramp

primary
#5254EB
secondary
#E8E8B0
accent
#D90ADC
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0F0B17
muted
#7E7C85

Preview Lab

Preview with #5254EB

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

Preview Lab → · Contrast checker → · Palette generator →

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