#797FB0#797FB0

#797FB0 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.1% C 0.075 H 278.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#797FB0
RGBrgb(121, 127, 176)
HSLhsl(233, 26%, 58%)
HSVhsv(233, 31%, 69%)
CMYKcmyk(31.3%, 27.8%, 0%, 31%)
CIE-LABlab(54.43, 9.41, -26.62)
CIE-LCHlch(54.43, 28.23, 289.47°)
OKLaboklab(61.06% 0.0111 -0.0738)
OKLCHoklch(61.06% 0.075 278.6)
XYZxyz(23.3089, 22.3776, 44.1571)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FB0 #B0AA79
analogous
#799AB0 #797FB0 #8E79B0
triadic
#797FB0 #B0797F #7FB079
tetradic
#797FB0 #B0799A #B0AA79 #79B08E
square
#797FB0 #B0799A #B0AA79 #79B08E
split-complementary
#797FB0 #B08E79 #9AB079
monochromatic
#41466E #575E94 #797FB0 #A0A4C7 #C6C9DD

Accessibility & contrast

On white

3.84
#797FB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#797FB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FB0
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FB0#FFFFFF#000000##000000
##797FB01.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7084B2
Deuteranopia (green-blind)
#6D80AF
Tritanopia (blue-blind)
#6B8890
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797fb0;
/* rgb */ color: rgb(121, 127, 176);
/* oklch */ color: oklch(61.1% 0.075 278.6);
Tailwind
colors: {
  custom: {
    50: '#a1a4c7',
    500: '#797fb0',
    950: '#000000',
  },
}
SCSS
$custom: #797fb0;
$custom-light: #a1a4c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797fb0",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 176
  },
  "hsl": {
    "h": 233.455,
    "s": 25.822,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61058,
    "c": 0.07459,
    "h": 278.6
  },
  "luminance": 0.22378
}

Semantic roles & 50–950 ramp

primary
#797FB0
secondary
#CDCBB7
accent
#B866C2
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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