#797EA9#797EA9

#797EA9 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.5% C 0.066 H 279.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#797EA9
RGBrgb(121, 126, 169)
HSLhsl(234, 22%, 57%)
HSVhsv(234, 28%, 66%)
CMYKcmyk(28.4%, 25.4%, 0%, 33.7%)
CIE-LABlab(53.87, 8.17, -23.44)
CIE-LCHlch(53.87, 24.83, 289.22°)
OKLaboklab(60.53% 0.0104 -0.0647)
OKLCHoklch(60.53% 0.066 279.1)
XYZxyz(22.5055, 21.8506, 40.5603)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA9 #A9A479
analogous
#7996A9 #797EA9 #8C79A9
triadic
#797EA9 #A9797E #7EA979
tetradic
#797EA9 #A97996 #A9A479 #79A98C
square
#797EA9 #A97996 #A9A479 #79A98C
split-complementary
#797EA9 #A98C79 #96A979
monochromatic
#424566 #595F8B #797EA9 #9EA2C1 #C4C6D9

Accessibility & contrast

On white

3.91
#797EA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#797EA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA9#FFFFFF#000000##000000
##797EA91.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7283AB
Deuteranopia (green-blind)
#6F7FA8
Tritanopia (blue-blind)
#6D868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797ea9;
/* rgb */ color: rgb(121, 126, 169);
/* oklch */ color: oklch(60.5% 0.066 279.1);
Tailwind
colors: {
  custom: {
    50: '#a0a3c2',
    500: '#797ea9',
    950: '#000000',
  },
}
SCSS
$custom: #797ea9;
$custom-light: #a0a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea9",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 169
  },
  "hsl": {
    "h": 233.75,
    "s": 21.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60531,
    "c": 0.06553,
    "h": 279.1
  },
  "luminance": 0.21851
}

Semantic roles & 50–950 ramp

primary
#797EA9
secondary
#C9C7B5
accent
#B669BE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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