#5271E9#5271E9

#5271E9 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.0% C 0.184 H 269.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5271E9
RGBrgb(82, 113, 233)
HSLhsl(228, 77%, 62%)
HSVhsv(228, 65%, 91%)
CMYKcmyk(64.8%, 51.5%, 0%, 8.6%)
CIE-LABlab(51.25, 26.54, -64.20)
CIE-LCHlch(51.25, 69.47, 292.46°)
OKLaboklab(58.96% -0.0027 -0.1843)
OKLCHoklch(58.96% 0.184 269.2)
XYZxyz(24.0878, 19.4851, 79.5666)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271E9 #E9CA52
analogous
#52BDE9 #5271E9 #7F52E9
triadic
#5271E9 #E95271 #71E952
tetradic
#5271E9 #E952BD #E9CA52 #52E97F
square
#5271E9 #E952BD #E9CA52 #52E97F
split-complementary
#5271E9 #E97F52 #BDE952
monochromatic
#1634AB #1D45E1 #5271E9 #889EF0 #BFCAF7

Accessibility & contrast

On white

4.29
#5271E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5271E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271E9
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271E9#FFFFFF#000000##000000
##5271E91.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2681ED
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5271e9;
/* rgb */ color: rgb(82, 113, 233);
/* oklch */ color: oklch(59.0% 0.184 269.2);
Tailwind
colors: {
  custom: {
    50: '#9299f1',
    500: '#5271e9',
    950: '#000000',
  },
}
SCSS
$custom: #5271e9;
$custom-light: #9299f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5271e9",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 227.682,
    "s": 77.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58961,
    "c": 0.18429,
    "h": 269.2
  },
  "luminance": 0.19487
}

Semantic roles & 50–950 ramp

primary
#5271E9
secondary
#E7DCAF
accent
#AF0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5271E9

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

Preview Lab → · Contrast checker → · Palette generator →

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