#797CBF#797CBF

#797CBF is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.2% C 0.101 H 281.0°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#797CBF
RGBrgb(121, 124, 191)
HSLhsl(237, 35%, 61%)
HSVhsv(237, 37%, 75%)
CMYKcmyk(36.6%, 35.1%, 0%, 25.1%)
CIE-LABlab(54.28, 15.24, -35.44)
CIE-LCHlch(54.28, 38.58, 293.28°)
OKLaboklab(61.16% 0.0193 -0.0991)
OKLCHoklch(61.16% 0.101 281)
XYZxyz(24.4941, 22.2410, 52.2825)
Luminance0.2224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CBF #BFBC79
analogous
#799FBF #797CBF #9979BF
triadic
#797CBF #BF797C #7CBF79
tetradic
#797CBF #BF799F #BFBC79 #79BF99
square
#797CBF #BF799F #BFBC79 #79BF99
split-complementary
#797CBF #BF9979 #9FBF79
monochromatic
#3D4080 #5155AA #797CBF #A2A4D3 #CCCDE7

Accessibility & contrast

On white

3.85
#797CBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#797CBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CBF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CBF#FFFFFF#000000##000000
##797CBF1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C2
Deuteranopia (green-blind)
#637FBD
Tritanopia (blue-blind)
#658995
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cbf;
/* rgb */ color: rgb(121, 124, 191);
/* oklch */ color: oklch(61.2% 0.101 281.0);
Tailwind
colors: {
  custom: {
    50: '#a2a1d2',
    500: '#797cbf',
    950: '#000000',
  },
}
SCSS
$custom: #797cbf;
$custom-light: #a2a1d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797cbf",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 191
  },
  "hsl": {
    "h": 237.429,
    "s": 35.354,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61164,
    "c": 0.10101,
    "h": 281
  },
  "luminance": 0.22242
}

Semantic roles & 50–950 ramp

primary
#797CBF
secondary
#D7D6BD
accent
#A937AE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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