#5796F0#5796F0

#5796F0 is a light, vivid blue. Relative luminance 0.301; OKLCH L 67.2% C 0.149 H 257.5°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5796F0
RGBrgb(87, 150, 240)
HSLhsl(215, 84%, 64%)
HSVhsv(215, 64%, 94%)
CMYKcmyk(63.7%, 37.5%, 0%, 5.9%)
CIE-LABlab(61.76, 7.35, -51.25)
CIE-LCHlch(61.76, 51.77, 278.16°)
OKLaboklab(67.23% -0.0323 -0.1456)
OKLCHoklch(67.23% 0.149 257.5)
XYZxyz(30.5594, 30.1273, 86.6258)
Luminance0.3013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5796F0 #F0B157
analogous
#57E3F0 #5796F0 #6557F0
triadic
#5796F0 #F05796 #96F057
tetradic
#5796F0 #F057E3 #F0B157 #57F065
square
#5796F0 #F057E3 #F0B157 #57F065
split-complementary
#5796F0 #F06557 #E3F057
monochromatic
#1157BC #1F73EB #5796F0 #8FB9F5 #C7DCFA

Accessibility & contrast

On white

2.99
#5796F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#5796F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5796F0
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5796F0#FFFFFF#000000##000000
##5796F01.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9DF4
Deuteranopia (green-blind)
#598FEE
Tritanopia (blue-blind)
#00ABB7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #5796f0;
/* rgb */ color: rgb(87, 150, 240);
/* oklch */ color: oklch(67.2% 0.149 257.5);
Tailwind
colors: {
  custom: {
    50: '#94b4f5',
    500: '#5796f0',
    950: '#000000',
  },
}
SCSS
$custom: #5796f0;
$custom-light: #94b4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5796f0",
  "rgb": {
    "r": 87,
    "g": 150,
    "b": 240
  },
  "hsl": {
    "h": 215.294,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.67226,
    "c": 0.14919,
    "h": 257.5
  },
  "luminance": 0.3013
}

Semantic roles & 50–950 ramp

primary
#5796F0
secondary
#ECD6B7
accent
#8605E0
background
#F9FBFF
surface
#F2F6FE
border
#CCD0D6
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5796F0

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

Preview Lab → · Contrast checker → · Palette generator →

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