#5271CB#5271CB

#5271CB is a mid, vivid blue. Relative luminance 0.179; OKLCH L 57.0% C 0.143 H 267.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#5271CB
RGBrgb(82, 113, 203)
HSLhsl(225, 54%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(59.6%, 44.3%, 0%, 20.4%)
CIE-LABlab(49.39, 16.33, -50.20)
CIE-LCHlch(49.39, 52.79, 288.02°)
OKLaboklab(56.95% -0.0064 -0.1431)
OKLCHoklch(56.95% 0.143 267.4)
XYZxyz(20.1606, 17.9142, 58.8837)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271CB #CBAC52
analogous
#52ADCB #5271CB #6F52CB
triadic
#5271CB #CB5271 #71CB52
tetradic
#5271CB #CB52AD #CBAC52 #52CB6F
square
#5271CB #CB52AD #CBAC52 #52CB6F
split-complementary
#5271CB #CB6F52 #ADCB52
monochromatic
#263C7D #3453AC #5271CB #8198D9 #B0BEE7

Accessibility & contrast

On white

4.58
#5271CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#5271CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271CB
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271CB#FFFFFF#000000##000000
##5271CB1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#487BCE
Deuteranopia (green-blind)
#3670C9
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5271cb;
/* rgb */ color: rgb(82, 113, 203);
/* oklch */ color: oklch(57.0% 0.143 267.4);
Tailwind
colors: {
  custom: {
    50: '#8d99db',
    500: '#5271cb',
    950: '#000000',
  },
}
SCSS
$custom: #5271cb;
$custom-light: #8d99db;
$custom-dark: #000000;
JSON
{
  "hex": "#5271cb",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 224.628,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.14325,
    "h": 267.4
  },
  "luminance": 0.17916
}

Semantic roles & 50–950 ramp

primary
#5271CB
secondary
#D5C9A3
accent
#B84BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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