#797DBA#797DBA

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

Color values

HEX#797DBA
RGBrgb(121, 125, 186)
HSLhsl(236, 32%, 60%)
HSVhsv(236, 35%, 73%)
CMYKcmyk(34.9%, 32.8%, 0%, 27.1%)
CIE-LABlab(54.32, 13.28, -32.52)
CIE-LCHlch(54.32, 35.13, 292.21°)
OKLaboklab(61.12% 0.0167 -0.0907)
OKLCHoklch(61.12% 0.092 280.4)
XYZxyz(24.0792, 22.2765, 49.4760)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DBA #BAB679
analogous
#799DBA #797DBA #9679BA
triadic
#797DBA #BA797D #7DBA79
tetradic
#797DBA #BA799D #BAB679 #79BA96
square
#797DBA #BA799D #BAB679 #79BA96
split-complementary
#797DBA #BA9679 #9DBA79
monochromatic
#3F427A #5458A2 #797DBA #A1A4CF #CACBE4

Accessibility & contrast

On white

3.85
#797DBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DBA#FFFFFF#000000##000000
##797DBA1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797dba;
/* rgb */ color: rgb(121, 125, 186);
/* oklch */ color: oklch(61.1% 0.092 280.4);
Tailwind
colors: {
  custom: {
    50: '#a2a2cf',
    500: '#797dba',
    950: '#000000',
  },
}
SCSS
$custom: #797dba;
$custom-light: #a2a2cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797dba",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 186
  },
  "hsl": {
    "h": 236.308,
    "s": 32.02,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61118,
    "c": 0.09223,
    "h": 280.4
  },
  "luminance": 0.22277
}

Semantic roles & 50–950 ramp

primary
#797DBA
secondary
#D4D2BB
accent
#A43BAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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