#5795FA#5795FA

#5795FA is a light, vivid blue. Relative luminance 0.304; OKLCH L 67.6% C 0.163 H 259.7°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5795FA
RGBrgb(87, 149, 250)
HSLhsl(217, 94%, 66%)
HSVhsv(217, 65%, 98%)
CMYKcmyk(65.2%, 40.4%, 0%, 2%)
CIE-LABlab(62.02, 11.30, -56.34)
CIE-LCHlch(62.02, 57.46, 281.34°)
OKLaboklab(67.59% -0.0292 -0.1606)
OKLCHoklch(67.59% 0.163 259.7)
XYZxyz(31.9271, 30.4201, 94.6130)
Luminance0.3042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5795FA #FABC57
analogous
#57E6FA #5795FA #6A57FA
triadic
#5795FA #FA5795 #95FA57
tetradic
#5795FA #FA57E6 #FABC57 #57FA6A
square
#5795FA #FA57E6 #FABC57 #57FA6A
split-complementary
#5795FA #FA6A57 #E6FA57
monochromatic
#0653D0 #1C6FF8 #5795FA #92BAFC #CEE0FE

Accessibility & contrast

On white

2.96
#5795FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#5795FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5795FA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5795FA#FFFFFF#000000##000000
##5795FA1.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#679EFE
Deuteranopia (green-blind)
#4E8FF8
Tritanopia (blue-blind)
#00ACBB
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5795fa;
/* rgb */ color: rgb(87, 149, 250);
/* oklch */ color: oklch(67.6% 0.163 259.7);
Tailwind
colors: {
  custom: {
    50: '#96b3fc',
    500: '#5795fa',
    950: '#000000',
  },
}
SCSS
$custom: #5795fa;
$custom-light: #96b3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5795fa",
  "rgb": {
    "r": 87,
    "g": 149,
    "b": 250
  },
  "hsl": {
    "h": 217.178,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67591,
    "c": 0.16323,
    "h": 259.7
  },
  "luminance": 0.30423
}

Semantic roles & 50–950 ramp

primary
#5795FA
secondary
#F1DDBC
accent
#8E00E6
background
#F9FAFF
surface
#F2F5FF
border
#CCCFD7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5795FA

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

Preview Lab → · Contrast checker → · Palette generator →

#5795FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva