#5270DB#5270DB

#5270DB is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.8% C 0.167 H 268.9°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5270DB
RGBrgb(82, 112, 219)
HSLhsl(227, 66%, 59%)
HSVhsv(227, 63%, 86%)
CMYKcmyk(62.6%, 48.9%, 0%, 14.1%)
CIE-LABlab(50.09, 22.38, -58.18)
CIE-LCHlch(50.09, 62.34, 291.04°)
OKLaboklab(57.79% -0.0031 -0.1666)
OKLCHoklch(57.79% 0.167 268.9)
XYZxyz(22.0557, 18.4947, 69.4116)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270DB #DBBD52
analogous
#52B5DB #5270DB #7952DB
triadic
#5270DB #DB5270 #70DB52
tetradic
#5270DB #DB52B5 #DBBD52 #52DB79
square
#5270DB #DB52B5 #DBBD52 #52DB79
split-complementary
#5270DB #DB7952 #B5DB52
monochromatic
#1F3894 #294CC6 #5270DB #859AE6 #B7C4F0

Accessibility & contrast

On white

4.47
#5270DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5270DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270DB#FFFFFF#000000##000000
##5270DB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#1871D9
Tritanopia (blue-blind)
#00899B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5270db;
/* rgb */ color: rgb(82, 112, 219);
/* oklch */ color: oklch(57.8% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#8f98e7',
    500: '#5270db',
    950: '#000000',
  },
}
SCSS
$custom: #5270db;
$custom-light: #8f98e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5270db",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 226.861,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57795,
    "c": 0.16661,
    "h": 268.9
  },
  "luminance": 0.18497
}

Semantic roles & 50–950 ramp

primary
#5270DB
secondary
#DFD4AA
accent
#C33FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5270DB

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

Preview Lab → · Contrast checker → · Palette generator →

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