#797FBE#797FBE

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

Color values

HEX#797FBE
RGBrgb(121, 127, 190)
HSLhsl(235, 35%, 61%)
HSVhsv(235, 36%, 75%)
CMYKcmyk(36.3%, 33.2%, 0%, 25.5%)
CIE-LABlab(55.03, 13.19, -33.69)
CIE-LCHlch(55.03, 36.18, 291.37°)
OKLaboklab(61.73% 0.015 -0.0941)
OKLCHoklch(61.73% 0.095 279)
XYZxyz(24.7661, 22.9605, 51.8321)
Luminance0.2296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FBE #BEB879
analogous
#79A1BE #797FBE #9579BE
triadic
#797FBE #BE797F #7FBE79
tetradic
#797FBE #BE79A1 #BEB879 #79BE95
square
#797FBE #BE79A1 #BEB879 #79BE95
split-complementary
#797FBE #BE9579 #A1BE79
monochromatic
#3E437F #5259A8 #797FBE #A2A6D2 #CBCEE6

Accessibility & contrast

On white

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

On black

5.59
#797FBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FBE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FBE#FFFFFF#000000##000000
##797FBE1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B86C1
Deuteranopia (green-blind)
#6781BC
Tritanopia (blue-blind)
#668B96
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fbe;
/* rgb */ color: rgb(121, 127, 190);
/* oklch */ color: oklch(61.7% 0.095 279.0);
Tailwind
colors: {
  custom: {
    50: '#a2a4d2',
    500: '#797fbe',
    950: '#000000',
  },
}
SCSS
$custom: #797fbe;
$custom-light: #a2a4d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797fbe",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 190
  },
  "hsl": {
    "h": 234.783,
    "s": 34.673,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.09528,
    "h": 279
  },
  "luminance": 0.22961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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