#5270BB#5270BB

#5270BB is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.8% C 0.122 H 266.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5270BB
RGBrgb(82, 112, 187)
HSLhsl(223, 44%, 53%)
HSVhsv(223, 56%, 73%)
CMYKcmyk(56.1%, 40.1%, 0%, 26.7%)
CIE-LABlab(48.22, 11.59, -42.87)
CIE-LCHlch(48.22, 44.41, 285.13°)
OKLaboklab(55.76% -0.0083 -0.1216)
OKLCHoklch(55.76% 0.122 266.1)
XYZxyz(18.2405, 16.9686, 49.3181)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270BB #BB9D52
analogous
#52A4BB #5270BB #6852BB
triadic
#5270BB #BB5270 #70BB52
tetradic
#5270BB #BB52A4 #BB9D52 #52BB68
square
#5270BB #BB52A4 #BB9D52 #52BB68
split-complementary
#5270BB #BB6852 #A4BB52
monochromatic
#293C69 #3B5495 #5270BB #7E94CC #AAB9DE

Accessibility & contrast

On white

4.78
#5270BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5270BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5270BB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270BB#FFFFFF#000000##FFFFFF
##5270BB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5178BE
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#0F808C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5270bb;
/* rgb */ color: rgb(82, 112, 187);
/* oklch */ color: oklch(55.8% 0.122 266.1);
Tailwind
colors: {
  custom: {
    50: '#8a98d0',
    500: '#5270bb',
    950: '#000000',
  },
}
SCSS
$custom: #5270bb;
$custom-light: #8a98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5270bb",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 222.857,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55759,
    "c": 0.12191,
    "h": 266.1
  },
  "luminance": 0.1697
}

Semantic roles & 50–950 ramp

primary
#5270BB
secondary
#CBBE9E
accent
#AF54D3
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5270BB

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

Preview Lab → · Contrast checker → · Palette generator →

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