#797BBF#797BBF

#797BBF is a mid, moderate blue. Relative luminance 0.220; OKLCH L 61.0% C 0.102 H 281.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#797BBF
RGBrgb(121, 123, 191)
HSLhsl(238, 35%, 61%)
HSVhsv(238, 37%, 75%)
CMYKcmyk(36.6%, 35.6%, 0%, 25.1%)
CIE-LABlab(54.02, 15.84, -35.85)
CIE-LCHlch(54.02, 39.19, 293.84°)
OKLaboklab(60.96% 0.0206 -0.1003)
OKLCHoklch(60.96% 0.102 281.6)
XYZxyz(24.3694, 21.9916, 52.2409)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BBF #BFBD79
analogous
#799EBF #797BBF #9A79BF
triadic
#797BBF #BF797B #7BBF79
tetradic
#797BBF #BF799E #BFBD79 #79BF9A
square
#797BBF #BF799E #BFBD79 #79BF9A
split-complementary
#797BBF #BF9A79 #9EBF79
monochromatic
#3D3F80 #5154AA #797BBF #A2A4D3 #CCCDE7

Accessibility & contrast

On white

3.89
#797BBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#797BBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BBF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BBF#FFFFFF#000000##000000
##797BBF1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6584C2
Deuteranopia (green-blind)
#627FBD
Tritanopia (blue-blind)
#668894
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bbf;
/* rgb */ color: rgb(121, 123, 191);
/* oklch */ color: oklch(61.0% 0.102 281.6);
Tailwind
colors: {
  custom: {
    50: '#a2a1d2',
    500: '#797bbf',
    950: '#000000',
  },
}
SCSS
$custom: #797bbf;
$custom-light: #a2a1d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797bbf",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 191
  },
  "hsl": {
    "h": 238.286,
    "s": 35.354,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60961,
    "c": 0.10244,
    "h": 281.6
  },
  "luminance": 0.21992
}

Semantic roles & 50–950 ramp

primary
#797BBF
secondary
#D7D6BD
accent
#AB37AE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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