#797FB8#797FB8

#797FB8 is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.4% C 0.086 H 278.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#797FB8
RGBrgb(121, 127, 184)
HSLhsl(234, 31%, 60%)
HSVhsv(234, 34%, 72%)
CMYKcmyk(34.2%, 31%, 0%, 27.8%)
CIE-LABlab(54.77, 11.55, -30.68)
CIE-LCHlch(54.77, 32.78, 290.63°)
OKLaboklab(61.43% 0.0134 -0.0854)
OKLCHoklch(61.43% 0.086 278.9)
XYZxyz(24.1238, 22.7036, 48.4493)
Luminance0.2270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB8 #B8B279
analogous
#799EB8 #797FB8 #9379B8
triadic
#797FB8 #B8797F #7FB879
tetradic
#797FB8 #B8799E #B8B279 #79B893
square
#797FB8 #B8799E #B8B279 #79B893
split-complementary
#797FB8 #B89379 #9EB879
monochromatic
#3F4577 #545C9F #797FB8 #A1A5CD #C9CBE2

Accessibility & contrast

On white

3.79
#797FB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#797FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB8#FFFFFF#000000##000000
##797FB81.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D85BA
Deuteranopia (green-blind)
#6A81B7
Tritanopia (blue-blind)
#688A93
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fb8;
/* rgb */ color: rgb(121, 127, 184);
/* oklch */ color: oklch(61.4% 0.086 278.9);
Tailwind
colors: {
  custom: {
    50: '#a1a4cd',
    500: '#797fb8',
    950: '#000000',
  },
}
SCSS
$custom: #797fb8;
$custom-light: #a1a4cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb8",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 184
  },
  "hsl": {
    "h": 234.286,
    "s": 30.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61433,
    "c": 0.08645,
    "h": 278.9
  },
  "luminance": 0.22704
}

Semantic roles & 50–950 ramp

primary
#797FB8
secondary
#D3D0BA
accent
#BD61C7
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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