#5271D4#5271D4

#5271D4 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.5% C 0.156 H 268.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5271D4
RGBrgb(82, 113, 212)
HSLhsl(226, 60%, 58%)
HSVhsv(226, 61%, 83%)
CMYKcmyk(61.3%, 46.7%, 0%, 16.9%)
CIE-LABlab(49.92, 19.38, -54.48)
CIE-LCHlch(49.92, 57.82, 289.58°)
OKLaboklab(57.53% -0.005 -0.1557)
OKLCHoklch(57.53% 0.156 268.2)
XYZxyz(21.2644, 18.3557, 64.6970)
Luminance0.1836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271D4 #D4B552
analogous
#52B2D4 #5271D4 #7452D4
triadic
#5271D4 #D45271 #71D452
tetradic
#5271D4 #D452B2 #D4B552 #52D474
square
#5271D4 #D452B2 #D4B552 #52D474
split-complementary
#5271D4 #D47452 #B2D452
monochromatic
#223B89 #2E50BA #5271D4 #8399E0 #B4C1EC

Accessibility & contrast

On white

4.50
#5271D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#5271D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271D4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271D4#FFFFFF#000000##000000
##5271D41.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#407DD8
Deuteranopia (green-blind)
#2A71D2
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5271d4;
/* rgb */ color: rgb(82, 113, 212);
/* oklch */ color: oklch(57.5% 0.156 268.2);
Tailwind
colors: {
  custom: {
    50: '#8e99e2',
    500: '#5271d4',
    950: '#000000',
  },
}
SCSS
$custom: #5271d4;
$custom-light: #8e99e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5271d4",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 225.692,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5753,
    "c": 0.15575,
    "h": 268.2
  },
  "luminance": 0.18358
}

Semantic roles & 50–950 ramp

primary
#5271D4
secondary
#DBCFA7
accent
#BD44E3
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271D4

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

Preview Lab → · Contrast checker → · Palette generator →

#5271D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva