#797FBB#797FBB

#797FBB is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.6% C 0.091 H 279.0°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#797FBB
RGBrgb(121, 127, 187)
HSLhsl(235, 33%, 60%)
HSVhsv(235, 35%, 73%)
CMYKcmyk(35.3%, 32.1%, 0%, 26.7%)
CIE-LABlab(54.90, 12.36, -32.19)
CIE-LCHlch(54.90, 34.48, 291.01°)
OKLaboklab(61.58% 0.0142 -0.0898)
OKLCHoklch(61.58% 0.091 279)
XYZxyz(24.4416, 22.8307, 50.1230)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FBB #BBB579
analogous
#79A0BB #797FBB #9479BB
triadic
#797FBB #BB797F #7FBB79
tetradic
#797FBB #BB79A0 #BBB579 #79BB94
square
#797FBB #BB79A0 #BBB579 #79BB94
split-complementary
#797FBB #BB9479 #A0BB79
monochromatic
#3E447B #535AA4 #797FBB #A2A6D0 #CACDE4

Accessibility & contrast

On white

3.77
#797FBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#797FBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FBB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FBB#FFFFFF#000000##000000
##797FBB1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C86BD
Deuteranopia (green-blind)
#6881BA
Tritanopia (blue-blind)
#678A95
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797fbb;
/* rgb */ color: rgb(121, 127, 187);
/* oklch */ color: oklch(61.6% 0.091 279.0);
Tailwind
colors: {
  custom: {
    50: '#a2a4cf',
    500: '#797fbb',
    950: '#000000',
  },
}
SCSS
$custom: #797fbb;
$custom-light: #a2a4cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797fbb",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 187
  },
  "hsl": {
    "h": 234.545,
    "s": 32.673,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61579,
    "c": 0.09087,
    "h": 279
  },
  "luminance": 0.22832
}

Semantic roles & 50–950 ramp

primary
#797FBB
secondary
#D5D2BB
accent
#A13AAB
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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