#5791E3#5791E3

#5791E3 is a light, vivid blue. Relative luminance 0.278; OKLCH L 65.4% C 0.137 H 257.2°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5791E3
RGBrgb(87, 145, 227)
HSLhsl(215, 71%, 62%)
HSVhsv(215, 62%, 89%)
CMYKcmyk(61.7%, 36.1%, 0%, 11%)
CIE-LABlab(59.73, 5.95, -47.28)
CIE-LCHlch(59.73, 47.65, 277.18°)
OKLaboklab(65.43% -0.0303 -0.1341)
OKLCHoklch(65.43% 0.137 257.2)
XYZxyz(27.9161, 27.8205, 76.5569)
Luminance0.2782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791E3 #E3A957
analogous
#57D7E3 #5791E3 #6357E3
triadic
#5791E3 #E35791 #91E357
tetradic
#5791E3 #E357D7 #E3A957 #57E363
square
#5791E3 #E357D7 #E3A957 #57E363
split-complementary
#5791E3 #E36357 #D7E357
monochromatic
#1B54A4 #246FD9 #5791E3 #8BB3EC #C0D6F4

Accessibility & contrast

On white

3.20
#5791E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#5791E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791E3
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791E3#FFFFFF#000000##000000
##5791E31.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E97E6
Deuteranopia (green-blind)
#5B8AE1
Tritanopia (blue-blind)
#00A4AF
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #5791e3;
/* rgb */ color: rgb(87, 145, 227);
/* oklch */ color: oklch(65.4% 0.137 257.2);
Tailwind
colors: {
  custom: {
    50: '#92b0ec',
    500: '#5791e3',
    950: '#000000',
  },
}
SCSS
$custom: #5791e3;
$custom-light: #92b0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5791e3",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 227
  },
  "hsl": {
    "h": 215.143,
    "s": 71.429,
    "l": 61.569
  },
  "oklch": {
    "l": 0.65425,
    "c": 0.13749,
    "h": 257.2
  },
  "luminance": 0.27823
}

Semantic roles & 50–950 ramp

primary
#5791E3
secondary
#E5CFB1
accent
#8312D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1016
muted
#7E7F84

Preview Lab

Preview with #5791E3

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

Preview Lab → · Contrast checker → · Palette generator →

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