#797FBD#797FBD

#797FBD is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.7% C 0.094 H 279.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#797FBD
RGBrgb(121, 127, 189)
HSLhsl(235, 34%, 61%)
HSVhsv(235, 36%, 74%)
CMYKcmyk(36%, 32.8%, 0%, 25.9%)
CIE-LABlab(54.99, 12.91, -33.19)
CIE-LCHlch(54.99, 35.62, 291.25°)
OKLaboklab(61.68% 0.0147 -0.0927)
OKLCHoklch(61.68% 0.094 279)
XYZxyz(24.6572, 22.9169, 51.2585)
Luminance0.2292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FBD #BDB779
analogous
#79A1BD #797FBD #9579BD
triadic
#797FBD #BD797F #7FBD79
tetradic
#797FBD #BD79A1 #BDB779 #79BD95
square
#797FBD #BD79A1 #BDB779 #79BD95
split-complementary
#797FBD #BD9579 #A1BD79
monochromatic
#3E447E #525AA7 #797FBD #A2A6D1 #CBCDE5

Accessibility & contrast

On white

3.76
#797FBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#797FBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FBD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FBD#FFFFFF#000000##000000
##797FBD1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B86C0
Deuteranopia (green-blind)
#6781BB
Tritanopia (blue-blind)
#668B95
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fbd;
/* rgb */ color: rgb(121, 127, 189);
/* oklch */ color: oklch(61.7% 0.094 279.0);
Tailwind
colors: {
  custom: {
    50: '#a2a4d1',
    500: '#797fbd',
    950: '#000000',
  },
}
SCSS
$custom: #797fbd;
$custom-light: #a2a4d1;
$custom-dark: #000000;
JSON
{
  "hex": "#797fbd",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 189
  },
  "hsl": {
    "h": 234.706,
    "s": 34,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61677,
    "c": 0.09382,
    "h": 279
  },
  "luminance": 0.22918
}

Semantic roles & 50–950 ramp

primary
#797FBD
secondary
#D6D4BC
accent
#A339AD
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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