#797EB3#797EB3

#797EB3 is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.0% C 0.080 H 279.6°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#797EB3
RGBrgb(121, 126, 179)
HSLhsl(235, 28%, 59%)
HSVhsv(235, 32%, 70%)
CMYKcmyk(32.4%, 29.6%, 0%, 29.8%)
CIE-LABlab(54.28, 10.80, -28.56)
CIE-LCHlch(54.28, 30.54, 290.70°)
OKLaboklab(60.99% 0.0134 -0.0793)
OKLCHoklch(60.99% 0.08 279.6)
XYZxyz(23.4805, 22.2406, 45.6948)
Luminance0.2224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB3 #B3AE79
analogous
#799BB3 #797EB3 #9179B3
triadic
#797EB3 #B3797E #7EB379
tetradic
#797EB3 #B3799B #B3AE79 #79B391
square
#797EB3 #B3799B #B3AE79 #79B391
split-complementary
#797EB3 #B39179 #9BB379
monochromatic
#404571 #565C98 #797EB3 #A0A4C9 #C7C9DF

Accessibility & contrast

On white

3.85
#797EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#797EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB3
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB3#FFFFFF#000000##000000
##797EB31.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E84B5
Deuteranopia (green-blind)
#6B80B2
Tritanopia (blue-blind)
#6A8891
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb3;
/* rgb */ color: rgb(121, 126, 179);
/* oklch */ color: oklch(61.0% 0.080 279.6);
Tailwind
colors: {
  custom: {
    50: '#a1a3ca',
    500: '#797eb3',
    950: '#000000',
  },
}
SCSS
$custom: #797eb3;
$custom-light: #a1a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb3",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 179
  },
  "hsl": {
    "h": 234.828,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60988,
    "c": 0.08046,
    "h": 279.6
  },
  "luminance": 0.22241
}

Semantic roles & 50–950 ramp

primary
#797EB3
secondary
#CFCDB8
accent
#BC64C4
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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