#5270CB#5270CB

#5270CB is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.7% C 0.144 H 267.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5270CB
RGBrgb(82, 112, 203)
HSLhsl(225, 54%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(59.6%, 44.8%, 0%, 20.4%)
CIE-LABlab(49.12, 16.95, -50.63)
CIE-LCHlch(49.12, 53.40, 288.51°)
OKLaboklab(56.74% -0.0053 -0.1444)
OKLCHoklch(56.74% 0.144 267.9)
XYZxyz(20.0497, 17.6923, 58.8467)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270CB #CBAD52
analogous
#52ACCB #5270CB #7052CB
triadic
#5270CB #CB5270 #70CB52
tetradic
#5270CB #CB52AC #CBAD52 #52CB70
square
#5270CB #CB52AC #CBAD52 #52CB70
split-complementary
#5270CB #CB7052 #ACCB52
monochromatic
#263B7D #3452AC #5270CB #8197D9 #B0BEE7

Accessibility & contrast

On white

4.63
#5270CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5270CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5270CB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270CB#FFFFFF#000000##FFFFFF
##5270CB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467ACE
Deuteranopia (green-blind)
#3470C9
Tritanopia (blue-blind)
#008493
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5270cb;
/* rgb */ color: rgb(82, 112, 203);
/* oklch */ color: oklch(56.7% 0.144 267.9);
Tailwind
colors: {
  custom: {
    50: '#8d98db',
    500: '#5270cb',
    950: '#000000',
  },
}
SCSS
$custom: #5270cb;
$custom-light: #8d98db;
$custom-dark: #000000;
JSON
{
  "hex": "#5270cb",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 225.124,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.14449,
    "h": 267.9
  },
  "luminance": 0.17694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5270CB

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

Preview Lab → · Contrast checker → · Palette generator →

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