#5791F2#5791F2

#5791F2 is a light, vivid blue. Relative luminance 0.287; OKLCH L 66.3% C 0.157 H 260.1°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5791F2
RGBrgb(87, 145, 242)
HSLhsl(218, 86%, 65%)
HSVhsv(218, 64%, 95%)
CMYKcmyk(64%, 40.1%, 0%, 5.1%)
CIE-LABlab(60.50, 10.97, -54.35)
CIE-LCHlch(60.50, 55.45, 281.41°)
OKLaboklab(66.28% -0.027 -0.1548)
OKLCHoklch(66.28% 0.157 260.1)
XYZxyz(30.0772, 28.6850, 87.9389)
Luminance0.2869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791F2 #F2B857
analogous
#57DFF2 #5791F2 #6B57F2
triadic
#5791F2 #F25791 #91F257
tetradic
#5791F2 #F257DF #F2B857 #57F26B
square
#5791F2 #F257DF #F2B857 #57F26B
split-complementary
#5791F2 #F26B57 #DFF257
monochromatic
#0F51C0 #1E6CEE #5791F2 #90B6F6 #C9DBFB

Accessibility & contrast

On white

3.12
#5791F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#5791F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791F2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791F2#FFFFFF#000000##000000
##5791F21.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#4E8BF0
Tritanopia (blue-blind)
#00A7B6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #5791f2;
/* rgb */ color: rgb(87, 145, 242);
/* oklch */ color: oklch(66.3% 0.157 260.1);
Tailwind
colors: {
  custom: {
    50: '#94b0f7',
    500: '#5791f2',
    950: '#000000',
  },
}
SCSS
$custom: #5791f2;
$custom-light: #94b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5791f2",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 242
  },
  "hsl": {
    "h": 217.548,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.66281,
    "c": 0.15714,
    "h": 260.1
  },
  "luminance": 0.28688
}

Semantic roles & 50–950 ramp

primary
#5791F2
secondary
#EDD9B8
accent
#8F03E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791F2

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

Preview Lab → · Contrast checker → · Palette generator →

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