#5271EF#5271EF

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

Color values

HEX#5271EF
RGBrgb(82, 113, 239)
HSLhsl(228, 83%, 63%)
HSVhsv(228, 66%, 94%)
CMYKcmyk(65.7%, 52.7%, 0%, 6.3%)
CIE-LABlab(51.65, 28.60, -66.91)
CIE-LCHlch(51.65, 72.76, 293.14°)
OKLaboklab(59.39% -0.0022 -0.1922)
OKLCHoklch(59.39% 0.192 269.3)
XYZxyz(24.9595, 19.8338, 84.1576)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5271EF #EFD052
analogous
#52BFEF #5271EF #8152EF
triadic
#5271EF #EF5271 #71EF52
tetradic
#5271EF #EF52BF #EFD052 #52EF81
square
#5271EF #EF52BF #EFD052 #52EF81
split-complementary
#5271EF #EF8152 #BFEF52
monochromatic
#1131B6 #1A43EA #5271EF #8A9FF4 #C2CDF9

Accessibility & contrast

On white

4.23
#5271EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5271EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5271EF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5271EF#FFFFFF#000000##000000
##5271EF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1983F3
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5271ef;
/* rgb */ color: rgb(82, 113, 239);
/* oklch */ color: oklch(59.4% 0.192 269.3);
Tailwind
colors: {
  custom: {
    50: '#9399f5',
    500: '#5271ef',
    950: '#000000',
  },
}
SCSS
$custom: #5271ef;
$custom-light: #9399f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5271ef",
  "rgb": {
    "r": 82,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 228.153,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59389,
    "c": 0.19226,
    "h": 269.3
  },
  "luminance": 0.19836
}

Semantic roles & 50–950 ramp

primary
#5271EF
secondary
#EBDFB2
accent
#B506DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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