#5197F2#5197F2

#5197F2 is a light, vivid cyan. Relative luminance 0.303; OKLCH L 67.3% C 0.153 H 255.9°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5197F2
RGBrgb(81, 151, 242)
HSLhsl(214, 86%, 63%)
HSVhsv(214, 67%, 95%)
CMYKcmyk(66.5%, 37.6%, 0%, 5.1%)
CIE-LABlab(61.90, 6.45, -52.14)
CIE-LCHlch(61.90, 52.54, 277.05°)
OKLaboklab(67.3% -0.0373 -0.1483)
OKLCHoklch(67.3% 0.153 255.9)
XYZxyz(30.4811, 30.2903, 88.2274)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5197F2 #F2AC51
analogous
#51E7F2 #5197F2 #5B51F2
triadic
#5197F2 #F25197 #97F251
tetradic
#5197F2 #F251E7 #F2AC51 #51F25B
square
#5197F2 #F251E7 #F2AC51 #51F25B
split-complementary
#5197F2 #F25B51 #E7F251
monochromatic
#0E59BB #1875EE #5197F2 #8AB9F6 #C3DBFB

Accessibility & contrast

On white

2.98
#5197F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#5197F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5197F2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5197F2#FFFFFF#000000##000000
##5197F21.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9EF6
Deuteranopia (green-blind)
#568FF0
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5197f2;
/* rgb */ color: rgb(81, 151, 242);
/* oklch */ color: oklch(67.3% 0.153 255.9);
Tailwind
colors: {
  custom: {
    50: '#92b5f7',
    500: '#5197f2',
    950: '#000000',
  },
}
SCSS
$custom: #5197f2;
$custom-light: #92b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5197f2",
  "rgb": {
    "r": 81,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 213.913,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67303,
    "c": 0.15296,
    "h": 255.9
  },
  "luminance": 0.30293
}

Semantic roles & 50–950 ramp

primary
#5197F2
secondary
#ECD3B3
accent
#8103E3
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5197F2

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

Preview Lab → · Contrast checker → · Palette generator →

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