#5271EE#5271EE

#5271EE is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.191 H 269.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5271EE
RGBrgb(82, 113, 238)
HSLhsl(228, 82%, 63%)
HSVhsv(228, 66%, 93%)
CMYKcmyk(65.5%, 52.5%, 0%, 6.7%)
CIE-LABlab(51.58, 28.25, -66.46)
CIE-LCHlch(51.58, 72.22, 293.03°)
OKLaboklab(59.32% -0.0023 -0.1909)
OKLCHoklch(59.32% 0.191 269.3)
XYZxyz(24.8122, 19.7748, 83.3817)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271EE #EECF52
analogous
#52BFEE #5271EE #8152EE
triadic
#5271EE #EE5271 #71EE52
tetradic
#5271EE #EE52BF #EECF52 #52EE81
square
#5271EE #EE52BF #EECF52 #52EE81
split-complementary
#5271EE #EE8152 #BFEE52
monochromatic
#1232B4 #1A43E9 #5271EE #8A9FF3 #C1CCF9

Accessibility & contrast

On white

4.24
#5271EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5271EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271EE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271EE#FFFFFF#000000##000000
##5271EE1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C82F2
Deuteranopia (green-blind)
#0074EB
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5271ee;
/* rgb */ color: rgb(82, 113, 238);
/* oklch */ color: oklch(59.3% 0.191 269.3);
Tailwind
colors: {
  custom: {
    50: '#9299f4',
    500: '#5271ee',
    950: '#000000',
  },
}
SCSS
$custom: #5271ee;
$custom-light: #9299f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ee",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 228.077,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59317,
    "c": 0.19093,
    "h": 269.3
  },
  "luminance": 0.19777
}

Semantic roles & 50–950 ramp

primary
#5271EE
secondary
#EADFB2
accent
#B407DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5271EE

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

Preview Lab → · Contrast checker → · Palette generator →

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