#5791EA#5791EA

#5791EA is a light, vivid blue. Relative luminance 0.282; OKLCH L 65.8% C 0.147 H 258.7°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5791EA
RGBrgb(87, 145, 234)
HSLhsl(216, 78%, 63%)
HSVhsv(216, 63%, 92%)
CMYKcmyk(62.8%, 38%, 0%, 8.2%)
CIE-LABlab(60.08, 8.29, -50.60)
CIE-LCHlch(60.08, 51.27, 279.30°)
OKLaboklab(65.82% -0.0287 -0.1438)
OKLCHoklch(65.82% 0.147 258.7)
XYZxyz(28.9019, 28.2148, 81.7488)
Luminance0.2822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791EA #EAB057
analogous
#57DAEA #5791EA #6757EA
triadic
#5791EA #EA5791 #91EA57
tetradic
#5791EA #EA57DA #EAB057 #57EA67
square
#5791EA #EA57DA #EAB057 #57EA67
split-complementary
#5791EA #EA6757 #DAEA57
monochromatic
#1653B1 #216DE3 #5791EA #8DB5F1 #C4D8F8

Accessibility & contrast

On white

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

On black

6.64
#5791EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791EA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791EA#FFFFFF#000000##000000
##5791EA1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A98EE
Deuteranopia (green-blind)
#558AE8
Tritanopia (blue-blind)
#00A5B2
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5791ea;
/* rgb */ color: rgb(87, 145, 234);
/* oklch */ color: oklch(65.8% 0.147 258.7);
Tailwind
colors: {
  custom: {
    50: '#93b0f1',
    500: '#5791ea',
    950: '#000000',
  },
}
SCSS
$custom: #5791ea;
$custom-light: #93b0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5791ea",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 234
  },
  "hsl": {
    "h": 216.327,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.65818,
    "c": 0.14665,
    "h": 258.7
  },
  "luminance": 0.28218
}

Semantic roles & 50–950 ramp

primary
#5791EA
secondary
#E9D4B4
accent
#890BDA
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791EA

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

Preview Lab → · Contrast checker → · Palette generator →

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