#5791EB#5791EB

#5791EB is a light, vivid blue. Relative luminance 0.283; OKLCH L 65.9% C 0.148 H 258.9°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5791EB
RGBrgb(87, 145, 235)
HSLhsl(216, 79%, 63%)
HSVhsv(216, 63%, 92%)
CMYKcmyk(63%, 38.3%, 0%, 7.8%)
CIE-LABlab(60.13, 8.62, -51.07)
CIE-LCHlch(60.13, 51.79, 279.58°)
OKLaboklab(65.88% -0.0285 -0.1452)
OKLCHoklch(65.88% 0.148 258.9)
XYZxyz(29.0459, 28.2725, 82.5076)
Luminance0.2828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791EB #EBB157
analogous
#57DBEB #5791EB #6757EB
triadic
#5791EB #EB5791 #91EB57
tetradic
#5791EB #EB57DB #EBB157 #57EB67
square
#5791EB #EB57DB #EBB157 #57EB67
split-complementary
#5791EB #EB6757 #DBEB57
monochromatic
#1553B2 #206DE4 #5791EB #8EB5F2 #C4D9F8

Accessibility & contrast

On white

3.16
#5791EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#5791EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791EB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791EB#FFFFFF#000000##000000
##5791EB1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EF
Deuteranopia (green-blind)
#548BE9
Tritanopia (blue-blind)
#00A5B3
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5791eb;
/* rgb */ color: rgb(87, 145, 235);
/* oklch */ color: oklch(65.9% 0.148 258.9);
Tailwind
colors: {
  custom: {
    50: '#93b0f2',
    500: '#5791eb',
    950: '#000000',
  },
}
SCSS
$custom: #5791eb;
$custom-light: #93b0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5791eb",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 235
  },
  "hsl": {
    "h": 216.486,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.65875,
    "c": 0.14796,
    "h": 258.9
  },
  "luminance": 0.28275
}

Semantic roles & 50–950 ramp

primary
#5791EB
secondary
#E9D5B4
accent
#890ADB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791EB

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

Preview Lab → · Contrast checker → · Palette generator →

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