#5271C2#5271C2

#5271C2 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.4% C 0.131 H 266.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5271C2
RGBrgb(82, 113, 194)
HSLhsl(223, 48%, 54%)
HSVhsv(223, 58%, 76%)
CMYKcmyk(57.7%, 41.8%, 0%, 23.9%)
CIE-LABlab(48.88, 13.30, -45.86)
CIE-LCHlch(48.88, 47.75, 286.18°)
OKLaboklab(56.39% -0.008 -0.1304)
OKLCHoklch(56.39% 0.131 266.5)
XYZxyz(19.1191, 17.4976, 53.3983)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271C2 #C2A352
analogous
#52A9C2 #5271C2 #6B52C2
triadic
#5271C2 #C25271 #71C252
tetradic
#5271C2 #C252A9 #C2A352 #52C26B
square
#5271C2 #C252A9 #C2A352 #52C26B
split-complementary
#5271C2 #C26B52 #A9C252
monochromatic
#283C72 #38549F #5271C2 #7F96D2 #ACBBE2

Accessibility & contrast

On white

4.67
#5271C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#5271C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5271C2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271C2#FFFFFF#000000##FFFFFF
##5271C21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E7AC5
Deuteranopia (green-blind)
#3F6FC0
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5271c2;
/* rgb */ color: rgb(82, 113, 194);
/* oklch */ color: oklch(56.4% 0.131 266.5);
Tailwind
colors: {
  custom: {
    50: '#8b99d5',
    500: '#5271c2',
    950: '#000000',
  },
}
SCSS
$custom: #5271c2;
$custom-light: #8b99d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5271c2",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 223.393,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56393,
    "c": 0.1306,
    "h": 266.5
  },
  "luminance": 0.17499
}

Semantic roles & 50–950 ramp

primary
#5271C2
secondary
#D0C3A0
accent
#B250D7
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5271C2

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

Preview Lab → · Contrast checker → · Palette generator →

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