#797FB3#797FB3

#797FB3 is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.2% C 0.079 H 278.7°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#797FB3
RGBrgb(121, 127, 179)
HSLhsl(234, 28%, 59%)
HSVhsv(234, 32%, 70%)
CMYKcmyk(32.4%, 29.1%, 0%, 29.8%)
CIE-LABlab(54.55, 10.20, -28.15)
CIE-LCHlch(54.55, 29.94, 289.93°)
OKLaboklab(61.2% 0.012 -0.0781)
OKLCHoklch(61.2% 0.079 278.7)
XYZxyz(23.6090, 22.4976, 45.7376)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB3 #B3AD79
analogous
#799CB3 #797FB3 #9079B3
triadic
#797FB3 #B3797F #7FB379
tetradic
#797FB3 #B3799C #B3AD79 #79B390
square
#797FB3 #B3799C #B3AD79 #79B390
split-complementary
#797FB3 #B39079 #9CB379
monochromatic
#404571 #565D98 #797FB3 #A0A4C9 #C7CADF

Accessibility & contrast

On white

3.82
#797FB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#797FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB3
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB3#FFFFFF#000000##000000
##797FB31.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F85B5
Deuteranopia (green-blind)
#6C80B2
Tritanopia (blue-blind)
#6A8991
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797fb3;
/* rgb */ color: rgb(121, 127, 179);
/* oklch */ color: oklch(61.2% 0.079 278.7);
Tailwind
colors: {
  custom: {
    50: '#a1a4ca',
    500: '#797fb3',
    950: '#000000',
  },
}
SCSS
$custom: #797fb3;
$custom-light: #a1a4ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb3",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 179
  },
  "hsl": {
    "h": 233.793,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61197,
    "c": 0.07905,
    "h": 278.7
  },
  "luminance": 0.22498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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