#5791EF#5791EF

#5791EF is a light, vivid blue. Relative luminance 0.285; OKLCH L 66.1% C 0.153 H 259.6°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5791EF
RGBrgb(87, 145, 239)
HSLhsl(217, 83%, 64%)
HSVhsv(217, 64%, 94%)
CMYKcmyk(63.6%, 39.3%, 0%, 6.3%)
CIE-LABlab(60.34, 9.96, -52.95)
CIE-LCHlch(60.34, 53.88, 280.66°)
OKLaboklab(66.11% -0.0276 -0.1507)
OKLCHoklch(66.11% 0.153 259.6)
XYZxyz(29.6303, 28.5062, 85.5854)
Luminance0.2851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791EF #EFB557
analogous
#57DDEF #5791EF #6957EF
triadic
#5791EF #EF5791 #91EF57
tetradic
#5791EF #EF57DD #EFB557 #57EF69
square
#5791EF #EF57DD #EFB557 #57EF69
split-complementary
#5791EF #EF6957 #DDEF57
monochromatic
#1252BA #1F6CEA #5791EF #8FB6F4 #C7DAFA

Accessibility & contrast

On white

3.13
#5791EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#5791EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791EF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791EF#FFFFFF#000000##000000
##5791EF1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6799F3
Deuteranopia (green-blind)
#518BED
Tritanopia (blue-blind)
#00A6B4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5791ef;
/* rgb */ color: rgb(87, 145, 239);
/* oklch */ color: oklch(66.1% 0.153 259.6);
Tailwind
colors: {
  custom: {
    50: '#94b0f5',
    500: '#5791ef',
    950: '#000000',
  },
}
SCSS
$custom: #5791ef;
$custom-light: #94b0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5791ef",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 239
  },
  "hsl": {
    "h": 217.105,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66106,
    "c": 0.1532,
    "h": 259.6
  },
  "luminance": 0.28509
}

Semantic roles & 50–950 ramp

primary
#5791EF
secondary
#ECD7B6
accent
#8C06DF
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791EF

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

Preview Lab → · Contrast checker → · Palette generator →

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