#5791F0#5791F0

#5791F0 is a light, vivid blue. Relative luminance 0.286; OKLCH L 66.2% C 0.155 H 259.8°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5791F0
RGBrgb(87, 145, 240)
HSLhsl(217, 84%, 64%)
HSVhsv(217, 64%, 94%)
CMYKcmyk(63.7%, 39.6%, 0%, 5.9%)
CIE-LABlab(60.40, 10.30, -53.42)
CIE-LCHlch(60.40, 54.40, 280.91°)
OKLaboklab(66.16% -0.0274 -0.1521)
OKLCHoklch(66.16% 0.155 259.8)
XYZxyz(29.7785, 28.5655, 86.3655)
Luminance0.2857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791F0 #F0B657
analogous
#57DEF0 #5791F0 #6A57F0
triadic
#5791F0 #F05791 #91F057
tetradic
#5791F0 #F057DE #F0B657 #57F06A
square
#5791F0 #F057DE #F0B657 #57F06A
split-complementary
#5791F0 #F06A57 #DEF057
monochromatic
#1152BC #1F6CEB #5791F0 #8FB6F5 #C7DBFA

Accessibility & contrast

On white

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

On black

6.71
#5791F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791F0
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791F0#FFFFFF#000000##000000
##5791F01.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F4
Deuteranopia (green-blind)
#508BEE
Tritanopia (blue-blind)
#00A7B5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #5791f0;
/* rgb */ color: rgb(87, 145, 240);
/* oklch */ color: oklch(66.2% 0.155 259.8);
Tailwind
colors: {
  custom: {
    50: '#94b0f5',
    500: '#5791f0',
    950: '#000000',
  },
}
SCSS
$custom: #5791f0;
$custom-light: #94b0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5791f0",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 240
  },
  "hsl": {
    "h": 217.255,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.66164,
    "c": 0.15451,
    "h": 259.8
  },
  "luminance": 0.28568
}

Semantic roles & 50–950 ramp

primary
#5791F0
secondary
#ECD8B7
accent
#8D05E0
background
#F9FAFF
surface
#F2F4FE
border
#CCCED6
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791F0

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

Preview Lab → · Contrast checker → · Palette generator →

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