#797EBF#797EBF

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

Color values

HEX#797EBF
RGBrgb(121, 126, 191)
HSLhsl(236, 35%, 61%)
HSVhsv(236, 37%, 75%)
CMYKcmyk(36.6%, 34%, 0%, 25.1%)
CIE-LABlab(54.81, 14.06, -34.61)
CIE-LCHlch(54.81, 37.35, 292.10°)
OKLaboklab(61.57% 0.0166 -0.0967)
OKLCHoklch(61.57% 0.098 279.7)
XYZxyz(24.7473, 22.7473, 52.3669)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EBF #BFBA79
analogous
#79A1BF #797EBF #9779BF
triadic
#797EBF #BF797E #7EBF79
tetradic
#797EBF #BF79A1 #BFBA79 #79BF97
square
#797EBF #BF79A1 #BFBA79 #79BF97
split-complementary
#797EBF #BF9779 #A1BF79
monochromatic
#3D4280 #5157AA #797EBF #A2A6D3 #CCCEE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797EBF#FFFFFF#000000##000000
##797EBF1.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)
#6986C2
Deuteranopia (green-blind)
#6581BD
Tritanopia (blue-blind)
#658A96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ebf;
/* rgb */ color: rgb(121, 126, 191);
/* oklch */ color: oklch(61.6% 0.098 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d2',
    500: '#797ebf',
    950: '#000000',
  },
}
SCSS
$custom: #797ebf;
$custom-light: #a2a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ebf",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 191
  },
  "hsl": {
    "h": 235.714,
    "s": 35.354,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61571,
    "c": 0.09816,
    "h": 279.7
  },
  "luminance": 0.22748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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