#5271C7#5271C7

#5271C7 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.7% C 0.138 H 267.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5271C7
RGBrgb(82, 113, 199)
HSLhsl(224, 51%, 55%)
HSVhsv(224, 59%, 78%)
CMYKcmyk(58.8%, 43.2%, 0%, 22%)
CIE-LABlab(49.16, 14.98, -48.28)
CIE-LCHlch(49.16, 50.55, 287.24°)
OKLaboklab(56.7% -0.0071 -0.1375)
OKLCHoklch(56.7% 0.138 267.1)
XYZxyz(19.6901, 17.7260, 56.4056)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271C7 #C7A852
analogous
#52ABC7 #5271C7 #6E52C7
triadic
#5271C7 #C75271 #71C752
tetradic
#5271C7 #C752AB #C7A852 #52C76E
square
#5271C7 #C752AB #C7A852 #52C76E
split-complementary
#5271C7 #C76E52 #ABC752
monochromatic
#273C78 #3654A6 #5271C7 #8097D6 #AEBDE5

Accessibility & contrast

On white

4.62
#5271C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5271C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5271C7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271C7#FFFFFF#000000##FFFFFF
##5271C71.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ACA
Deuteranopia (green-blind)
#3A70C5
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5271c7;
/* rgb */ color: rgb(82, 113, 199);
/* oklch */ color: oklch(56.7% 0.138 267.1);
Tailwind
colors: {
  custom: {
    50: '#8c99d8',
    500: '#5271c7',
    950: '#000000',
  },
}
SCSS
$custom: #5271c7;
$custom-light: #8c99d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5271c7",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 224.103,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.567,
    "c": 0.13765,
    "h": 267.1
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#5271C7
secondary
#D3C6A2
accent
#B54DDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5271C7

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

Preview Lab → · Contrast checker → · Palette generator →

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