#797DBB#797DBB

#797DBB is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.2% C 0.094 H 280.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#797DBB
RGBrgb(121, 125, 187)
HSLhsl(236, 33%, 60%)
HSVhsv(236, 35%, 73%)
CMYKcmyk(35.3%, 33.2%, 0%, 26.7%)
CIE-LABlab(54.36, 13.55, -33.02)
CIE-LCHlch(54.36, 35.69, 292.31°)
OKLaboklab(61.17% 0.0169 -0.0922)
OKLCHoklch(61.17% 0.094 280.4)
XYZxyz(24.1859, 22.3192, 50.0378)
Luminance0.2232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DBB #BBB779
analogous
#799EBB #797DBB #9679BB
triadic
#797DBB #BB797D #7DBB79
tetradic
#797DBB #BB799E #BBB779 #79BB96
square
#797DBB #BB799E #BBB779 #79BB96
split-complementary
#797DBB #BB9679 #9EBB79
monochromatic
#3E427B #5358A4 #797DBB #A2A4D0 #CACCE4

Accessibility & contrast

On white

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

On black

5.46
#797DBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DBB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DBB#FFFFFF#000000##000000
##797DBB1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A84BE
Deuteranopia (green-blind)
#6680B9
Tritanopia (blue-blind)
#678993
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797dbb;
/* rgb */ color: rgb(121, 125, 187);
/* oklch */ color: oklch(61.2% 0.094 280.4);
Tailwind
colors: {
  custom: {
    50: '#a2a2cf',
    500: '#797dbb',
    950: '#000000',
  },
}
SCSS
$custom: #797dbb;
$custom-light: #a2a2cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797dbb",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 187
  },
  "hsl": {
    "h": 236.364,
    "s": 32.673,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61167,
    "c": 0.0937,
    "h": 280.4
  },
  "luminance": 0.2232
}

Semantic roles & 50–950 ramp

primary
#797DBB
secondary
#D5D3BB
accent
#A53AAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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