#5254E1#5254E1

#5254E1 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.1% C 0.209 H 276.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5254E1
RGBrgb(82, 84, 225)
HSLhsl(239, 70%, 60%)
HSVhsv(239, 64%, 88%)
CMYKcmyk(63.6%, 62.7%, 0%, 11.8%)
CIE-LABlab(43.61, 41.63, -72.09)
CIE-LCHlch(43.61, 83.25, 300.00°)
OKLaboklab(53.09% 0.0218 -0.2078)
OKLCHoklch(53.09% 0.209 276)
XYZxyz(20.2362, 13.5690, 72.7722)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254E1 #E1DF52
analogous
#529BE1 #5254E1 #9852E1
triadic
#5254E1 #E15254 #54E152
tetradic
#5254E1 #E1529B #E1DF52 #52E198
square
#5254E1 #E1529B #E1DF52 #52E198
split-complementary
#5254E1 #E19852 #9BE152
monochromatic
#1B1D9D #2427D1 #5254E1 #8688EA #BABBF3

Accessibility & contrast

On white

5.65
#5254E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5254E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254E1
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254E1#FFFFFF#000000##FFFFFF
##5254E11.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#007893
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5254e1;
/* rgb */ color: rgb(82, 84, 225);
/* oklch */ color: oklch(53.1% 0.209 276.0);
Tailwind
colors: {
  custom: {
    50: '#9284eb',
    500: '#5254e1',
    950: '#000000',
  },
}
SCSS
$custom: #5254e1;
$custom-light: #9284eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5254e1",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 239.161,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53089,
    "c": 0.20891,
    "h": 276
  },
  "luminance": 0.13571
}

Semantic roles & 50–950 ramp

primary
#5254E1
secondary
#E3E2AC
accent
#D013D2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5254E1

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

Preview Lab → · Contrast checker → · Palette generator →

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