#797FB9#797FB9

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

Color values

HEX#797FB9
RGBrgb(121, 127, 185)
HSLhsl(234, 31%, 60%)
HSVhsv(234, 35%, 73%)
CMYKcmyk(34.6%, 31.4%, 0%, 27.5%)
CIE-LABlab(54.81, 11.82, -31.18)
CIE-LCHlch(54.81, 33.35, 290.76°)
OKLaboklab(61.48% 0.0137 -0.0869)
OKLCHoklch(61.48% 0.088 278.9)
XYZxyz(24.2290, 22.7456, 49.0033)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB9 #B9B379
analogous
#799FB9 #797FB9 #9379B9
triadic
#797FB9 #B9797F #7FB979
tetradic
#797FB9 #B9799F #B9B379 #79B993
square
#797FB9 #B9799F #B9B379 #79B993
split-complementary
#797FB9 #B99379 #9FB979
monochromatic
#3F4479 #545BA1 #797FB9 #A1A5CE #C9CCE3

Accessibility & contrast

On white

3.78
#797FB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#797FB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB9
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB9#FFFFFF#000000##000000
##797FB91.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D86BB
Deuteranopia (green-blind)
#6981B8
Tritanopia (blue-blind)
#688A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fb9;
/* rgb */ color: rgb(121, 127, 185);
/* oklch */ color: oklch(61.5% 0.088 278.9);
Tailwind
colors: {
  custom: {
    50: '#a1a4ce',
    500: '#797fb9',
    950: '#000000',
  },
}
SCSS
$custom: #797fb9;
$custom-light: #a1a4ce;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb9",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 185
  },
  "hsl": {
    "h": 234.375,
    "s": 31.373,
    "l": 60
  },
  "oklch": {
    "l": 0.61482,
    "c": 0.08794,
    "h": 278.9
  },
  "luminance": 0.22746
}

Semantic roles & 50–950 ramp

primary
#797FB9
secondary
#D3D1BB
accent
#BE60C8
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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