#5274EA#5274EA

#5274EA is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.6% C 0.182 H 268.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5274EA
RGBrgb(82, 116, 234)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 92%)
CMYKcmyk(65%, 50.4%, 0%, 8.2%)
CIE-LABlab(52.09, 25.03, -63.40)
CIE-LCHlch(52.09, 68.17, 291.55°)
OKLaboklab(59.62% -0.0053 -0.1819)
OKLCHoklch(59.62% 0.182 268.3)
XYZxyz(24.5713, 20.2229, 80.4345)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274EA #EAC852
analogous
#52C0EA #5274EA #7C52EA
triadic
#5274EA #EA5274 #74EA52
tetradic
#5274EA #EA52C0 #EAC852 #52EA7C
square
#5274EA #EA52C0 #EAC852 #52EA7C
split-complementary
#5274EA #EA7C52 #C0EA52
monochromatic
#1537AD #1C48E3 #5274EA #89A0F1 #BFCCF7

Accessibility & contrast

On white

4.16
#5274EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5274EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274EA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274EA#FFFFFF#000000##000000
##5274EA1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F83EE
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#0090A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5274ea;
/* rgb */ color: rgb(82, 116, 234);
/* oklch */ color: oklch(59.6% 0.182 268.3);
Tailwind
colors: {
  custom: {
    50: '#929bf1',
    500: '#5274ea',
    950: '#000000',
  },
}
SCSS
$custom: #5274ea;
$custom-light: #929bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5274ea",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 234
  },
  "hsl": {
    "h": 226.579,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59616,
    "c": 0.18197,
    "h": 268.3
  },
  "luminance": 0.20225
}

Semantic roles & 50–950 ramp

primary
#5274EA
secondary
#E8DBB0
accent
#AC0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5274EA

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

Preview Lab → · Contrast checker → · Palette generator →

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