#5271C8#5271C8

#5271C8 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.8% C 0.139 H 267.2°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5271C8
RGBrgb(82, 113, 200)
HSLhsl(224, 52%, 55%)
HSVhsv(224, 59%, 78%)
CMYKcmyk(59%, 43.5%, 0%, 21.6%)
CIE-LABlab(49.22, 15.32, -48.76)
CIE-LCHlch(49.22, 51.11, 287.44°)
OKLaboklab(56.76% -0.0069 -0.1389)
OKLCHoklch(56.76% 0.139 267.2)
XYZxyz(19.8066, 17.7726, 57.0191)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271C8 #C8A952
analogous
#52ACC8 #5271C8 #6E52C8
triadic
#5271C8 #C85271 #71C852
tetradic
#5271C8 #C852AC #C8A952 #52C86E
square
#5271C8 #C852AC #C8A952 #52C86E
split-complementary
#5271C8 #C86E52 #ACC852
monochromatic
#273C79 #3553A8 #5271C8 #8097D7 #AFBDE6

Accessibility & contrast

On white

4.61
#5271C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5271C8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271C8#FFFFFF#000000##FFFFFF
##5271C81.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A7BCB
Deuteranopia (green-blind)
#3970C6
Tritanopia (blue-blind)
#008493
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5271c8;
/* rgb */ color: rgb(82, 113, 200);
/* oklch */ color: oklch(56.8% 0.139 267.2);
Tailwind
colors: {
  custom: {
    50: '#8c99d9',
    500: '#5271c8',
    950: '#000000',
  },
}
SCSS
$custom: #5271c8;
$custom-light: #8c99d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5271c8",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 224.237,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56762,
    "c": 0.13905,
    "h": 267.2
  },
  "luminance": 0.17774
}

Semantic roles & 50–950 ramp

primary
#5271C8
secondary
#D4C7A2
accent
#B64DDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271C8

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

Preview Lab → · Contrast checker → · Palette generator →

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