#5271CA#5271CA

#5271CA is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.9% C 0.142 H 267.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5271CA
RGBrgb(82, 113, 202)
HSLhsl(225, 53%, 56%)
HSVhsv(225, 59%, 79%)
CMYKcmyk(59.4%, 44.1%, 0%, 20.8%)
CIE-LABlab(49.33, 15.99, -49.72)
CIE-LCHlch(49.33, 52.23, 287.83°)
OKLaboklab(56.89% -0.0065 -0.1417)
OKLCHoklch(56.89% 0.142 267.4)
XYZxyz(20.0419, 17.8667, 58.2581)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271CA #CAAB52
analogous
#52ADCA #5271CA #6F52CA
triadic
#5271CA #CA5271 #71CA52
tetradic
#5271CA #CA52AD #CAAB52 #52CA6F
square
#5271CA #CA52AD #CAAB52 #52CA6F
split-complementary
#5271CA #CA6F52 #ADCA52
monochromatic
#263C7C #3453AB #5271CA #8197D8 #B0BEE7

Accessibility & contrast

On white

4.59
#5271CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5271CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5271CA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271CA#FFFFFF#000000##FFFFFF
##5271CA1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#487BCD
Deuteranopia (green-blind)
#3770C8
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5271ca;
/* rgb */ color: rgb(82, 113, 202);
/* oklch */ color: oklch(56.9% 0.142 267.4);
Tailwind
colors: {
  custom: {
    50: '#8c99db',
    500: '#5271ca',
    950: '#000000',
  },
}
SCSS
$custom: #5271ca;
$custom-light: #8c99db;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ca",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 224.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56887,
    "c": 0.14185,
    "h": 267.4
  },
  "luminance": 0.17868
}

Semantic roles & 50–950 ramp

primary
#5271CA
secondary
#D5C8A3
accent
#B74BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5271CA

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

Preview Lab → · Contrast checker → · Palette generator →

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