#5791E8#5791E8

#5791E8 is a light, vivid blue. Relative luminance 0.281; OKLCH L 65.7% C 0.144 H 258.3°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5791E8
RGBrgb(87, 145, 232)
HSLhsl(216, 76%, 63%)
HSVhsv(216, 63%, 91%)
CMYKcmyk(62.5%, 37.5%, 0%, 9%)
CIE-LABlab(59.98, 7.62, -49.65)
CIE-LCHlch(59.98, 50.24, 278.72°)
OKLaboklab(65.71% -0.0292 -0.141)
OKLCHoklch(65.71% 0.144 258.3)
XYZxyz(28.6162, 28.1006, 80.2442)
Luminance0.2810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791E8 #E8AE57
analogous
#57D9E8 #5791E8 #6657E8
triadic
#5791E8 #E85791 #91E857
tetradic
#5791E8 #E857D9 #E8AE57 #57E866
square
#5791E8 #E857D9 #E8AE57 #57E866
split-complementary
#5791E8 #E86657 #D9E857
monochromatic
#1853AD #216EE1 #5791E8 #8DB4EF #C3D7F7

Accessibility & contrast

On white

3.17
#5791E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#5791E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791E8
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791E8#FFFFFF#000000##000000
##5791E81.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B98EC
Deuteranopia (green-blind)
#578AE6
Tritanopia (blue-blind)
#00A5B1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5791e8;
/* rgb */ color: rgb(87, 145, 232);
/* oklch */ color: oklch(65.7% 0.144 258.3);
Tailwind
colors: {
  custom: {
    50: '#93b0f0',
    500: '#5791e8',
    950: '#000000',
  },
}
SCSS
$custom: #5791e8;
$custom-light: #93b0f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5791e8",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 232
  },
  "hsl": {
    "h": 216,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.65705,
    "c": 0.14402,
    "h": 258.3
  },
  "luminance": 0.28103
}

Semantic roles & 50–950 ramp

primary
#5791E8
secondary
#E8D3B3
accent
#870DD8
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1016
muted
#7E7F84

Preview Lab

Preview with #5791E8

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

Preview Lab → · Contrast checker → · Palette generator →

#5791E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva