#5274E4#5274E4

#5274E4 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.2% C 0.174 H 268.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5274E4
RGBrgb(82, 116, 228)
HSLhsl(226, 73%, 61%)
HSVhsv(226, 64%, 89%)
CMYKcmyk(64%, 49.1%, 0%, 10.6%)
CIE-LABlab(51.71, 22.98, -60.66)
CIE-LCHlch(51.71, 64.86, 290.75°)
OKLaboklab(59.2% -0.0059 -0.1738)
OKLCHoklch(59.2% 0.174 268.1)
XYZxyz(23.7239, 19.8839, 75.9715)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274E4 #E4C252
analogous
#52BDE4 #5274E4 #7952E4
triadic
#5274E4 #E45274 #74E452
tetradic
#5274E4 #E452BD #E4C252 #52E479
square
#5274E4 #E452BD #E4C252 #52E479
split-complementary
#5274E4 #E47952 #BDE452
monochromatic
#1939A2 #224CD7 #5274E4 #879FEC #BCC9F5

Accessibility & contrast

On white

4.22
#5274E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5274E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274E4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274E4#FFFFFF#000000##000000
##5274E41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3782E8
Deuteranopia (green-blind)
#0E75E2
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5274e4;
/* rgb */ color: rgb(82, 116, 228);
/* oklch */ color: oklch(59.2% 0.174 268.1);
Tailwind
colors: {
  custom: {
    50: '#919bed',
    500: '#5274e4',
    950: '#000000',
  },
}
SCSS
$custom: #5274e4;
$custom-light: #919bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5274e4",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 228
  },
  "hsl": {
    "h": 226.027,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59203,
    "c": 0.17391,
    "h": 268.1
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#5274E4
secondary
#E5D8AD
accent
#A710D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5274E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5274E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva