#5791FE#5791FE

#5791FE is a light, vivid blue. Relative luminance 0.294; OKLCH L 67.0% C 0.173 H 261.8°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5791FE
RGBrgb(87, 145, 254)
HSLhsl(219, 99%, 67%)
HSVhsv(219, 66%, 100%)
CMYKcmyk(65.7%, 42.9%, 0%, 0.4%)
CIE-LABlab(61.16, 15.03, -59.90)
CIE-LCHlch(61.16, 61.76, 284.09°)
OKLaboklab(67% -0.0247 -0.1711)
OKLCHoklch(67% 0.173 261.8)
XYZxyz(31.9389, 29.4297, 97.7440)
Luminance0.2943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791FE #FEC457
analogous
#57E4FE #5791FE #7157FE
triadic
#5791FE #FE5791 #91FE57
tetradic
#5791FE #FE57E4 #FEC457 #57FE71
square
#5791FE #FE57E4 #FEC457 #57FE71
split-complementary
#5791FE #FE7157 #E4FE57
monochromatic
#014CD9 #1A69FE #5791FE #94B9FE #D1E1FF

Accessibility & contrast

On white

3.05
#5791FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#5791FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791FE
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791FE#FFFFFF#000000##000000
##5791FE1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#418CFC
Tritanopia (blue-blind)
#00AABB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #5791fe;
/* rgb */ color: rgb(87, 145, 254);
/* oklch */ color: oklch(67.0% 0.173 261.8);
Tailwind
colors: {
  custom: {
    50: '#96b0ff',
    500: '#5791fe',
    950: '#000000',
  },
}
SCSS
$custom: #5791fe;
$custom-light: #96b0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5791fe",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 254
  },
  "hsl": {
    "h": 219.162,
    "s": 98.817,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67001,
    "c": 0.17287,
    "h": 261.8
  },
  "luminance": 0.29433
}

Semantic roles & 50–950 ramp

primary
#5791FE
secondary
#F3E1BE
accent
#9600E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F1018
muted
#7F7F86

Preview Lab

Preview with #5791FE

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

Preview Lab → · Contrast checker → · Palette generator →

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