#5272DA#5272DA

#5272DA is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.1% C 0.163 H 268.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5272DA
RGBrgb(82, 114, 218)
HSLhsl(226, 65%, 59%)
HSVhsv(226, 62%, 85%)
CMYKcmyk(62.4%, 47.7%, 0%, 14.5%)
CIE-LABlab(50.56, 20.80, -56.87)
CIE-LCHlch(50.56, 60.55, 290.09°)
OKLaboklab(58.13% -0.0052 -0.1627)
OKLCHoklch(58.13% 0.163 268.2)
XYZxyz(22.1476, 18.8885, 68.7948)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5272DA #DABA52
analogous
#52B6DA #5272DA #7652DA
triadic
#5272DA #DA5272 #72DA52
tetradic
#5272DA #DA52B6 #DABA52 #52DA76
square
#5272DA #DA52B6 #DABA52 #52DA76
split-complementary
#5272DA #DA7652 #B6DA52
monochromatic
#1F3A92 #2A4EC5 #5272DA #849BE5 #B7C4F0

Accessibility & contrast

On white

4.40
#5272DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5272DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5272DA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5272DA#FFFFFF#000000##000000
##5272DA1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7FDE
Deuteranopia (green-blind)
#2273D8
Tritanopia (blue-blind)
#008A9B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5272da;
/* rgb */ color: rgb(82, 114, 218);
/* oklch */ color: oklch(58.1% 0.163 268.2);
Tailwind
colors: {
  custom: {
    50: '#8f9ae6',
    500: '#5272da',
    950: '#000000',
  },
}
SCSS
$custom: #5272da;
$custom-light: #8f9ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5272da",
  "rgb": {
    "r": 82,
    "g": 114,
    "b": 218
  },
  "hsl": {
    "h": 225.882,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58129,
    "c": 0.16276,
    "h": 268.2
  },
  "luminance": 0.1889
}

Semantic roles & 50–950 ramp

primary
#5272DA
secondary
#DFD2A9
accent
#C040E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5272DA

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

Preview Lab → · Contrast checker → · Palette generator →

#5272DA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva