#797EB0#797EB0

#797EB0 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.8% C 0.076 H 279.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797EB0
RGBrgb(121, 126, 176)
HSLhsl(235, 26%, 58%)
HSVhsv(235, 31%, 69%)
CMYKcmyk(31.3%, 28.4%, 0%, 31%)
CIE-LABlab(54.15, 10.00, -27.04)
CIE-LCHlch(54.15, 28.82, 290.30°)
OKLaboklab(60.85% 0.0125 -0.075)
OKLCHoklch(60.85% 0.076 279.5)
XYZxyz(23.1804, 22.1206, 44.1143)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB0 #B0AB79
analogous
#7999B0 #797EB0 #8F79B0
triadic
#797EB0 #B0797E #7EB079
tetradic
#797EB0 #B07999 #B0AB79 #79B08F
square
#797EB0 #B07999 #B0AB79 #79B08F
split-complementary
#797EB0 #B08F79 #99B079
monochromatic
#41456E #575D94 #797EB0 #A0A3C7 #C6C8DD

Accessibility & contrast

On white

3.87
#797EB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797EB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB0
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB0#FFFFFF#000000##000000
##797EB01.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F84B2
Deuteranopia (green-blind)
#6C80AF
Tritanopia (blue-blind)
#6B8790
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797eb0;
/* rgb */ color: rgb(121, 126, 176);
/* oklch */ color: oklch(60.8% 0.076 279.5);
Tailwind
colors: {
  custom: {
    50: '#a1a3c7',
    500: '#797eb0',
    950: '#000000',
  },
}
SCSS
$custom: #797eb0;
$custom-light: #a1a3c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb0",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 176
  },
  "hsl": {
    "h": 234.545,
    "s": 25.822,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.076,
    "h": 279.5
  },
  "luminance": 0.22121
}

Semantic roles & 50–950 ramp

primary
#797EB0
secondary
#CDCBB7
accent
#BA66C2
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB0

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

Preview Lab → · Contrast checker → · Palette generator →

#797EB0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva