#797DCB#797DCB

#797DCB is a mid, moderate blue. Relative luminance 0.230; OKLCH L 62.0% C 0.117 H 280.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#797DCB
RGBrgb(121, 125, 203)
HSLhsl(237, 44%, 64%)
HSVhsv(237, 40%, 80%)
CMYKcmyk(40.4%, 38.4%, 0%, 20.4%)
CIE-LABlab(55.12, 18.02, -40.96)
CIE-LCHlch(55.12, 44.75, 293.75°)
OKLaboklab(61.99% 0.0207 -0.1152)
OKLCHoklch(61.99% 0.117 280.2)
XYZxyz(25.9951, 23.0429, 59.5664)
Luminance0.2304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DCB #CBC779
analogous
#79A6CB #797DCB #9E79CB
triadic
#797DCB #CB797D #7DCB79
tetradic
#797DCB #CB79A6 #CBC779 #79CB9E
square
#797DCB #CB79A6 #CBC779 #79CB9E
split-complementary
#797DCB #CB9E79 #A6CB79
monochromatic
#383D91 #4D52BA #797DCB #A5A8DC #D1D3ED

Accessibility & contrast

On white

3.74
#797DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#797DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DCB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DCB#FFFFFF#000000##000000
##797DCB1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#5D81C9
Tritanopia (blue-blind)
#608C9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dcb;
/* rgb */ color: rgb(121, 125, 203);
/* oklch */ color: oklch(62.0% 0.117 280.2);
Tailwind
colors: {
  custom: {
    50: '#a3a2db',
    500: '#797dcb',
    950: '#000000',
  },
}
SCSS
$custom: #797dcb;
$custom-light: #a3a2db;
$custom-dark: #000000;
JSON
{
  "hex": "#797dcb",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 203
  },
  "hsl": {
    "h": 237.073,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61992,
    "c": 0.11701,
    "h": 280.2
  },
  "luminance": 0.23044
}

Semantic roles & 50–950 ramp

primary
#797DCB
secondary
#DEDDC1
accent
#B12EB7
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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