#5271DF#5271DF

#5271DF is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.3% C 0.171 H 268.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5271DF
RGBrgb(82, 113, 223)
HSLhsl(227, 69%, 60%)
HSVhsv(227, 63%, 87%)
CMYKcmyk(63.2%, 49.3%, 0%, 12.5%)
CIE-LABlab(50.60, 23.12, -59.61)
CIE-LCHlch(50.60, 63.94, 291.20°)
OKLaboklab(58.27% -0.0036 -0.1708)
OKLCHoklch(58.27% 0.171 268.8)
XYZxyz(22.6996, 18.9298, 72.2553)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271DF #DFC052
analogous
#52B7DF #5271DF #7A52DF
triadic
#5271DF #DF5271 #71DF52
tetradic
#5271DF #DF52B7 #DFC052 #52DF7A
square
#5271DF #DF52B7 #DFC052 #52DF7A
split-complementary
#5271DF #DF7A52 #B7DF52
monochromatic
#1D389A #264BCE #5271DF #869BE9 #B9C6F2

Accessibility & contrast

On white

4.39
#5271DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5271DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271DF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271DF#FFFFFF#000000##000000
##5271DF1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#357FE3
Deuteranopia (green-blind)
#0F72DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5271df;
/* rgb */ color: rgb(82, 113, 223);
/* oklch */ color: oklch(58.3% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#9099ea',
    500: '#5271df',
    950: '#000000',
  },
}
SCSS
$custom: #5271df;
$custom-light: #9099ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5271df",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 226.809,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58266,
    "c": 0.17082,
    "h": 268.8
  },
  "luminance": 0.18932
}

Semantic roles & 50–950 ramp

primary
#5271DF
secondary
#E2D6AB
accent
#C53CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5271DF

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

Preview Lab → · Contrast checker → · Palette generator →

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