#5274EC#5274EC

#5274EC is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.8% C 0.185 H 268.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5274EC
RGBrgb(82, 116, 236)
HSLhsl(227, 80%, 62%)
HSVhsv(227, 65%, 93%)
CMYKcmyk(65.3%, 50.8%, 0%, 7.5%)
CIE-LABlab(52.22, 25.72, -64.31)
CIE-LCHlch(52.22, 69.27, 291.80°)
OKLaboklab(59.76% -0.0051 -0.1846)
OKLCHoklch(59.76% 0.185 268.4)
XYZxyz(24.8602, 20.3384, 81.9562)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274EC #ECCA52
analogous
#52C1EC #5274EC #7D52EC
triadic
#5274EC #EC5274 #74EC52
tetradic
#5274EC #EC52C1 #ECCA52 #52EC7D
square
#5274EC #EC52C1 #ECCA52 #52EC7D
split-complementary
#5274EC #EC7D52 #C1EC52
monochromatic
#1336B0 #1B48E6 #5274EC #89A0F2 #C0CDF8

Accessibility & contrast

On white

4.14
#5274EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#5274EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274EC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274EC#FFFFFF#000000##000000
##5274EC1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C84F0
Deuteranopia (green-blind)
#0076EA
Tritanopia (blue-blind)
#0090A5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5274ec;
/* rgb */ color: rgb(82, 116, 236);
/* oklch */ color: oklch(59.8% 0.185 268.4);
Tailwind
colors: {
  custom: {
    50: '#929bf3',
    500: '#5274ec',
    950: '#000000',
  },
}
SCSS
$custom: #5274ec;
$custom-light: #929bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5274ec",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 226.753,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59756,
    "c": 0.18464,
    "h": 268.4
  },
  "luminance": 0.20341
}

Semantic roles & 50–950 ramp

primary
#5274EC
secondary
#E9DDB1
accent
#AE09DD
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5274EC

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

Preview Lab → · Contrast checker → · Palette generator →

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