#5270DC#5270DC

#5270DC is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.9% C 0.168 H 269.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5270DC
RGBrgb(82, 112, 220)
HSLhsl(227, 66%, 59%)
HSVhsv(227, 63%, 86%)
CMYKcmyk(62.7%, 49.1%, 0%, 13.7%)
CIE-LABlab(50.15, 22.72, -58.64)
CIE-LCHlch(50.15, 62.89, 291.18°)
OKLaboklab(57.86% -0.003 -0.1679)
OKLCHoklch(57.86% 0.168 269)
XYZxyz(22.1877, 18.5475, 70.1070)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270DC #DCBE52
analogous
#52B5DC #5270DC #7952DC
triadic
#5270DC #DC5270 #70DC52
tetradic
#5270DC #DC52B5 #DCBE52 #52DC79
square
#5270DC #DC52B5 #DCBE52 #52DC79
split-complementary
#5270DC #DC7952 #B5DC52
monochromatic
#1E3895 #294BC8 #5270DC #859AE6 #B8C4F1

Accessibility & contrast

On white

4.46
#5270DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5270DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270DC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270DC#FFFFFF#000000##000000
##5270DC1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#1571DA
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5270dc;
/* rgb */ color: rgb(82, 112, 220);
/* oklch */ color: oklch(57.9% 0.168 269.0);
Tailwind
colors: {
  custom: {
    50: '#8f98e7',
    500: '#5270dc',
    950: '#000000',
  },
}
SCSS
$custom: #5270dc;
$custom-light: #8f98e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5270dc",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 226.957,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57863,
    "c": 0.16797,
    "h": 269
  },
  "luminance": 0.18549
}

Semantic roles & 50–950 ramp

primary
#5270DC
secondary
#E0D4AA
accent
#C43FE9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5270DC

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

Preview Lab → · Contrast checker → · Palette generator →

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