#798EB3#798EB3

#798EB3 is a light, moderate blue. Relative luminance 0.267; OKLCH L 64.4% C 0.061 H 261.6°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#798EB3
RGBrgb(121, 142, 179)
HSLhsl(218, 28%, 59%)
HSVhsv(218, 32%, 70%)
CMYKcmyk(32.4%, 20.7%, 0%, 29.8%)
CIE-LABlab(58.66, 1.47, -21.81)
CIE-LCHlch(58.66, 21.86, 273.85°)
OKLaboklab(64.4% -0.0088 -0.0601)
OKLCHoklch(64.4% 0.061 261.6)
XYZxyz(25.6925, 26.6646, 46.4321)
Luminance0.2667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EB3 #B39E79
analogous
#79ABB3 #798EB3 #8179B3
triadic
#798EB3 #B3798E #8EB379
tetradic
#798EB3 #B379AB #B39E79 #79B381
square
#798EB3 #B379AB #B39E79 #79B381
split-complementary
#798EB3 #B38179 #ABB379
monochromatic
#405271 #566E98 #798EB3 #A0AFC9 #C7D0DF

Accessibility & contrast

On white

3.32
#798EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#798EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798EB3
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EB3#FFFFFF#000000##000000
##798EB31.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8290B5
Deuteranopia (green-blind)
#7C8BB2
Tritanopia (blue-blind)
#68969A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #798eb3;
/* rgb */ color: rgb(121, 142, 179);
/* oklch */ color: oklch(64.4% 0.061 261.6);
Tailwind
colors: {
  custom: {
    50: '#a1afc9',
    500: '#798eb3',
    950: '#000000',
  },
}
SCSS
$custom: #798eb3;
$custom-light: #a1afc9;
$custom-dark: #000000;
JSON
{
  "hex": "#798eb3",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 179
  },
  "hsl": {
    "h": 218.276,
    "s": 27.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.64399,
    "c": 0.06079,
    "h": 261.6
  },
  "luminance": 0.26666
}

Semantic roles & 50–950 ramp

primary
#798EB3
secondary
#CFC7B8
accent
#A164C4
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798EB3

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

Preview Lab → · Contrast checker → · Palette generator →

#798EB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva