#797FBA#797FBA

#797FBA is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.5% C 0.089 H 279.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#797FBA
RGBrgb(121, 127, 186)
HSLhsl(234, 32%, 60%)
HSVhsv(234, 35%, 73%)
CMYKcmyk(34.9%, 31.7%, 0%, 27.1%)
CIE-LABlab(54.85, 12.09, -31.69)
CIE-LCHlch(54.85, 33.92, 290.89°)
OKLaboklab(61.53% 0.0139 -0.0883)
OKLCHoklch(61.53% 0.089 279)
XYZxyz(24.3350, 22.7880, 49.5612)
Luminance0.2279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FBA #BAB479
analogous
#799FBA #797FBA #9479BA
triadic
#797FBA #BA797F #7FBA79
tetradic
#797FBA #BA799F #BAB479 #79BA94
square
#797FBA #BA799F #BAB479 #79BA94
split-complementary
#797FBA #BA9479 #9FBA79
monochromatic
#3F447A #545BA2 #797FBA #A1A6CF #CACCE4

Accessibility & contrast

On white

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

On black

5.56
#797FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FBA
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FBA#FFFFFF#000000##000000
##797FBA1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D86BC
Deuteranopia (green-blind)
#6981B9
Tritanopia (blue-blind)
#678A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fba;
/* rgb */ color: rgb(121, 127, 186);
/* oklch */ color: oklch(61.5% 0.089 279.0);
Tailwind
colors: {
  custom: {
    50: '#a2a4cf',
    500: '#797fba',
    950: '#000000',
  },
}
SCSS
$custom: #797fba;
$custom-light: #a2a4cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797fba",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 186
  },
  "hsl": {
    "h": 234.462,
    "s": 32.02,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6153,
    "c": 0.08941,
    "h": 279
  },
  "luminance": 0.22789
}

Semantic roles & 50–950 ramp

primary
#797FBA
secondary
#D4D2BB
accent
#A03BAB
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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