#5271CC#5271CC

#5271CC is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.0% C 0.145 H 267.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5271CC
RGBrgb(82, 113, 204)
HSLhsl(225, 54%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(59.8%, 44.6%, 0%, 20%)
CIE-LABlab(49.45, 16.67, -50.68)
CIE-LCHlch(49.45, 53.35, 288.20°)
OKLaboklab(57.01% -0.0062 -0.1445)
OKLCHoklch(57.01% 0.145 267.5)
XYZxyz(20.2802, 17.9620, 59.5133)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271CC #CCAD52
analogous
#52AECC #5271CC #7052CC
triadic
#5271CC #CC5271 #71CC52
tetradic
#5271CC #CC52AE #CCAD52 #52CC70
square
#5271CC #CC52AE #CCAD52 #52CC70
split-complementary
#5271CC #CC7052 #AECC52
monochromatic
#253C7E #3352AE #5271CC #8198DA #B1BFE8

Accessibility & contrast

On white

4.57
#5271CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5271CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271CC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271CC#FFFFFF#000000##000000
##5271CC1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCF
Deuteranopia (green-blind)
#3570CA
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271cc;
/* rgb */ color: rgb(82, 113, 204);
/* oklch */ color: oklch(57.0% 0.145 267.5);
Tailwind
colors: {
  custom: {
    50: '#8d99dc',
    500: '#5271cc',
    950: '#000000',
  },
}
SCSS
$custom: #5271cc;
$custom-light: #8d99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5271cc",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 224.754,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57014,
    "c": 0.14464,
    "h": 267.5
  },
  "luminance": 0.17964
}

Semantic roles & 50–950 ramp

primary
#5271CC
secondary
#D6C9A4
accent
#B84ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271CC

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

Preview Lab → · Contrast checker → · Palette generator →

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