#5271CF#5271CF

#5271CF is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.149 H 267.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5271CF
RGBrgb(82, 113, 207)
HSLhsl(225, 57%, 57%)
HSVhsv(225, 60%, 81%)
CMYKcmyk(60.4%, 45.4%, 0%, 18.8%)
CIE-LABlab(49.63, 17.68, -52.11)
CIE-LCHlch(49.63, 55.03, 288.74°)
OKLaboklab(57.21% -0.0057 -0.1487)
OKLCHoklch(57.21% 0.149 267.8)
XYZxyz(20.6435, 18.1074, 61.4266)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271CF #CFB052
analogous
#52B0CF #5271CF #7252CF
triadic
#5271CF #CF5271 #71CF52
tetradic
#5271CF #CF52B0 #CFB052 #52CF72
square
#5271CF #CF52B0 #CFB052 #52CF72
split-complementary
#5271CF #CF7252 #B0CF52
monochromatic
#243C82 #3151B2 #5271CF #8298DC #B2C0EA

Accessibility & contrast

On white

4.54
#5271CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5271CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271CF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271CF#FFFFFF#000000##000000
##5271CF1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#457CD3
Deuteranopia (green-blind)
#3171CD
Tritanopia (blue-blind)
#008696
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5271cf;
/* rgb */ color: rgb(82, 113, 207);
/* oklch */ color: oklch(57.2% 0.149 267.8);
Tailwind
colors: {
  custom: {
    50: '#8d99de',
    500: '#5271cf',
    950: '#000000',
  },
}
SCSS
$custom: #5271cf;
$custom-light: #8d99de;
$custom-dark: #000000;
JSON
{
  "hex": "#5271cf",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 225.12,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57205,
    "c": 0.14883,
    "h": 267.8
  },
  "luminance": 0.18109
}

Semantic roles & 50–950 ramp

primary
#5271CF
secondary
#D8CBA5
accent
#BA48E0
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271CF

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

Preview Lab → · Contrast checker → · Palette generator →

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