#5271D1#5271D1

#5271D1 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.3% C 0.152 H 267.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5271D1
RGBrgb(82, 113, 209)
HSLhsl(225, 58%, 57%)
HSVhsv(225, 61%, 82%)
CMYKcmyk(60.8%, 45.9%, 0%, 18%)
CIE-LABlab(49.74, 18.36, -53.06)
CIE-LCHlch(49.74, 56.14, 289.08°)
OKLaboklab(57.33% -0.0054 -0.1515)
OKLCHoklch(57.33% 0.152 267.9)
XYZxyz(20.8895, 18.2058, 62.7225)
Luminance0.1821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271D1 #D1B252
analogous
#52B1D1 #5271D1 #7252D1
triadic
#5271D1 #D15271 #71D152
tetradic
#5271D1 #D152B1 #D1B252 #52D172
square
#5271D1 #D152B1 #D1B252 #52D172
split-complementary
#5271D1 #D17252 #B1D152
monochromatic
#233B85 #3051B6 #5271D1 #8299DE #B3C0EB

Accessibility & contrast

On white

4.52
#5271D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5271D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271D1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271D1#FFFFFF#000000##000000
##5271D11.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#437CD5
Deuteranopia (green-blind)
#2E71CF
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271d1;
/* rgb */ color: rgb(82, 113, 209);
/* oklch */ color: oklch(57.3% 0.152 267.9);
Tailwind
colors: {
  custom: {
    50: '#8d99e0',
    500: '#5271d1',
    950: '#000000',
  },
}
SCSS
$custom: #5271d1;
$custom-light: #8d99e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5271d1",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 209
  },
  "hsl": {
    "h": 225.354,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57334,
    "c": 0.15161,
    "h": 267.9
  },
  "luminance": 0.18208
}

Semantic roles & 50–950 ramp

primary
#5271D1
secondary
#D9CDA6
accent
#BB47E1
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271D1

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

Preview Lab → · Contrast checker → · Palette generator →

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