#798BCC#798BCC

#798BCC is a light, moderate blue. Relative luminance 0.269; OKLCH L 64.9% C 0.100 H 271.6°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#798BCC
RGBrgb(121, 139, 204)
HSLhsl(227, 45%, 64%)
HSVhsv(227, 41%, 80%)
CMYKcmyk(40.7%, 31.9%, 0%, 20%)
CIE-LABlab(58.87, 10.03, -35.63)
CIE-LCHlch(58.87, 37.02, 285.72°)
OKLaboklab(64.9% 0.0027 -0.0997)
OKLCHoklch(64.9% 0.1 271.6)
XYZxyz(28.0135, 26.8885, 60.8290)
Luminance0.2689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BCC #CCBA79
analogous
#79B4CC #798BCC #9079CC
triadic
#798BCC #CC798B #8BCC79
tetradic
#798BCC #CC79B4 #CCBA79 #79CC90
square
#798BCC #CC79B4 #CCBA79 #79CC90
split-complementary
#798BCC #CC9079 #B4CC79
monochromatic
#384C93 #4D65BB #798BCC #A5B1DD #D2D8EE

Accessibility & contrast

On white

3.29
#798BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#798BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BCC
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BCC#FFFFFF#000000##000000
##798BCC1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7591CF
Deuteranopia (green-blind)
#6E8ACA
Tritanopia (blue-blind)
#5E98A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #798bcc;
/* rgb */ color: rgb(121, 139, 204);
/* oklch */ color: oklch(64.9% 0.100 271.6);
Tailwind
colors: {
  custom: {
    50: '#a3acdc',
    500: '#798bcc',
    950: '#000000',
  },
}
SCSS
$custom: #798bcc;
$custom-light: #a3acdc;
$custom-dark: #000000;
JSON
{
  "hex": "#798bcc",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 204
  },
  "hsl": {
    "h": 226.988,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.649,
    "c": 0.09973,
    "h": 271.6
  },
  "luminance": 0.2689
}

Semantic roles & 50–950 ramp

primary
#798BCC
secondary
#DFD9C2
accent
#9A2DB8
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#0F1015
muted
#7F7F83

Preview Lab

Preview with #798BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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