#797FBF#797FBF

#797FBF is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.8% C 0.097 H 279.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#797FBF
RGBrgb(121, 127, 191)
HSLhsl(235, 35%, 61%)
HSVhsv(235, 37%, 75%)
CMYKcmyk(36.6%, 33.5%, 0%, 25.1%)
CIE-LABlab(55.08, 13.46, -34.19)
CIE-LCHlch(55.08, 36.75, 291.49°)
OKLaboklab(61.78% 0.0152 -0.0955)
OKLCHoklch(61.78% 0.097 279.1)
XYZxyz(24.8758, 23.0044, 52.4097)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FBF #BFB979
analogous
#79A2BF #797FBF #9679BF
triadic
#797FBF #BF797F #7FBF79
tetradic
#797FBF #BF79A2 #BFB979 #79BF96
square
#797FBF #BF79A2 #BFB979 #79BF96
split-complementary
#797FBF #BF9679 #A2BF79
monochromatic
#3D4380 #5159AA #797FBF #A2A7D3 #CCCEE7

Accessibility & contrast

On white

3.75
#797FBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#797FBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FBF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FBF#FFFFFF#000000##000000
##797FBF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B87C2
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#658B96
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fbf;
/* rgb */ color: rgb(121, 127, 191);
/* oklch */ color: oklch(61.8% 0.097 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d2',
    500: '#797fbf',
    950: '#000000',
  },
}
SCSS
$custom: #797fbf;
$custom-light: #a2a4d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797fbf",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 191
  },
  "hsl": {
    "h": 234.857,
    "s": 35.354,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61776,
    "c": 0.09676,
    "h": 279.1
  },
  "luminance": 0.23005
}

Semantic roles & 50–950 ramp

primary
#797FBF
secondary
#D7D5BD
accent
#A437AE
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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