#5791F3#5791F3

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

Color values

HEX#5791F3
RGBrgb(87, 145, 243)
HSLhsl(218, 87%, 65%)
HSVhsv(218, 64%, 95%)
CMYKcmyk(64.2%, 40.3%, 0%, 4.7%)
CIE-LABlab(60.56, 11.31, -54.82)
CIE-LCHlch(60.56, 55.97, 281.66°)
OKLaboklab(66.34% -0.0268 -0.1562)
OKLCHoklch(66.34% 0.158 260.3)
XYZxyz(30.2278, 28.7452, 88.7320)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791F3 #F3B957
analogous
#57DFF3 #5791F3 #6B57F3
triadic
#5791F3 #F35791 #91F357
tetradic
#5791F3 #F357DF #F3B957 #57F36B
square
#5791F3 #F357DF #F3B957 #57F36B
split-complementary
#5791F3 #F36B57 #DFF357
monochromatic
#0E51C2 #1E6CEF #5791F3 #90B6F7 #C9DCFB

Accessibility & contrast

On white

3.11
#5791F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#5791F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791F3
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791F3#FFFFFF#000000##000000
##5791F31.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5791f3;
/* rgb */ color: rgb(87, 145, 243);
/* oklch */ color: oklch(66.3% 0.158 260.3);
Tailwind
colors: {
  custom: {
    50: '#94b0f7',
    500: '#5791f3',
    950: '#000000',
  },
}
SCSS
$custom: #5791f3;
$custom-light: #94b0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5791f3",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 243
  },
  "hsl": {
    "h": 217.692,
    "s": 86.667,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6634,
    "c": 0.15845,
    "h": 260.3
  },
  "luminance": 0.28748
}

Semantic roles & 50–950 ramp

primary
#5791F3
secondary
#EEDAB8
accent
#9002E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791F3

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

Preview Lab → · Contrast checker → · Palette generator →

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