#5271CE#5271CE

#5271CE is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.1% C 0.147 H 267.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5271CE
RGBrgb(82, 113, 206)
HSLhsl(225, 56%, 56%)
HSVhsv(225, 60%, 81%)
CMYKcmyk(60.2%, 45.1%, 0%, 19.2%)
CIE-LABlab(49.57, 17.34, -51.63)
CIE-LCHlch(49.57, 54.47, 288.56°)
OKLaboklab(57.14% -0.0059 -0.1473)
OKLCHoklch(57.14% 0.147 267.7)
XYZxyz(20.5216, 18.0586, 60.7848)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271CE #CEAF52
analogous
#52AFCE #5271CE #7152CE
triadic
#5271CE #CE5271 #71CE52
tetradic
#5271CE #CE52AF #CEAF52 #52CE71
square
#5271CE #CE52AF #CEAF52 #52CE71
split-complementary
#5271CE #CE7152 #AFCE52
monochromatic
#253C81 #3252B1 #5271CE #8298DC #B1BFE9

Accessibility & contrast

On white

4.55
#5271CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5271CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271CE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271CE#FFFFFF#000000##000000
##5271CE1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#457CD1
Deuteranopia (green-blind)
#3271CC
Tritanopia (blue-blind)
#008695
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271ce;
/* rgb */ color: rgb(82, 113, 206);
/* oklch */ color: oklch(57.1% 0.147 267.7);
Tailwind
colors: {
  custom: {
    50: '#8d99dd',
    500: '#5271ce',
    950: '#000000',
  },
}
SCSS
$custom: #5271ce;
$custom-light: #8d99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ce",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 225,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57141,
    "c": 0.14744,
    "h": 267.7
  },
  "luminance": 0.1806
}

Semantic roles & 50–950 ramp

primary
#5271CE
secondary
#D7CBA4
accent
#BA49DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271CE

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

Preview Lab → · Contrast checker → · Palette generator →

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