#5274DC#5274DC

#5274DC is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.7% C 0.163 H 267.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5274DC
RGBrgb(82, 116, 220)
HSLhsl(225, 66%, 59%)
HSVhsv(225, 63%, 86%)
CMYKcmyk(62.7%, 47.3%, 0%, 13.7%)
CIE-LABlab(51.21, 20.24, -56.95)
CIE-LCHlch(51.21, 60.44, 289.57°)
OKLaboklab(58.67% -0.0069 -0.1629)
OKLCHoklch(58.67% 0.163 267.6)
XYZxyz(22.6389, 19.4499, 70.2574)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274DC #DCBA52
analogous
#52B9DC #5274DC #7552DC
triadic
#5274DC #DC5274 #74DC52
tetradic
#5274DC #DC52B9 #DCBA52 #52DC75
square
#5274DC #DC52B9 #DCBA52 #52DC75
split-complementary
#5274DC #DC7552 #B9DC52
monochromatic
#1E3C95 #2950C8 #5274DC #859DE6 #B8C6F1

Accessibility & contrast

On white

4.29
#5274DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#5274DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274DC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274DC#FFFFFF#000000##000000
##5274DC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F81E0
Deuteranopia (green-blind)
#2574DA
Tritanopia (blue-blind)
#008C9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5274dc;
/* rgb */ color: rgb(82, 116, 220);
/* oklch */ color: oklch(58.7% 0.163 267.6);
Tailwind
colors: {
  custom: {
    50: '#8f9be7',
    500: '#5274dc',
    950: '#000000',
  },
}
SCSS
$custom: #5274dc;
$custom-light: #8f9be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5274dc",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 225.217,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58666,
    "c": 0.16305,
    "h": 267.6
  },
  "luminance": 0.19452
}

Semantic roles & 50–950 ramp

primary
#5274DC
secondary
#E0D3AA
accent
#BF3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5274DC

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

Preview Lab → · Contrast checker → · Palette generator →

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