#5795F2#5795F2

#5795F2 is a light, vivid blue. Relative luminance 0.299; OKLCH L 67.1% C 0.153 H 258.3°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5795F2
RGBrgb(87, 149, 242)
HSLhsl(216, 86%, 65%)
HSVhsv(216, 64%, 95%)
CMYKcmyk(64%, 38.4%, 0%, 5.1%)
CIE-LABlab(61.59, 8.60, -52.62)
CIE-LCHlch(61.59, 53.32, 279.29°)
OKLaboklab(67.13% -0.0309 -0.1497)
OKLCHoklch(67.13% 0.153 258.3)
XYZxyz(30.6992, 29.9290, 88.1462)
Luminance0.2993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5795F2 #F2B457
analogous
#57E2F2 #5795F2 #6757F2
triadic
#5795F2 #F25795 #95F257
tetradic
#5795F2 #F257E2 #F2B457 #57F267
square
#5795F2 #F257E2 #F2B457 #57F267
split-complementary
#5795F2 #F26757 #E2F257
monochromatic
#0F56C0 #1E71EE #5795F2 #90B9F6 #C9DDFB

Accessibility & contrast

On white

3.01
#5795F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#5795F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5795F2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5795F2#FFFFFF#000000##000000
##5795F21.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#558EF0
Tritanopia (blue-blind)
#00AAB8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #5795f2;
/* rgb */ color: rgb(87, 149, 242);
/* oklch */ color: oklch(67.1% 0.153 258.3);
Tailwind
colors: {
  custom: {
    50: '#94b3f7',
    500: '#5795f2',
    950: '#000000',
  },
}
SCSS
$custom: #5795f2;
$custom-light: #94b3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5795f2",
  "rgb": {
    "r": 87,
    "g": 149,
    "b": 242
  },
  "hsl": {
    "h": 216,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67127,
    "c": 0.15283,
    "h": 258.3
  },
  "luminance": 0.29932
}

Semantic roles & 50–950 ramp

primary
#5795F2
secondary
#EDD8B8
accent
#8903E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5795F2

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

Preview Lab → · Contrast checker → · Palette generator →

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