#797FDB#797FDB

#797FDB is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.3% C 0.137 H 278.9°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#797FDB
RGBrgb(121, 127, 219)
HSLhsl(236, 58%, 67%)
HSVhsv(236, 45%, 86%)
CMYKcmyk(44.7%, 42%, 0%, 14.1%)
CIE-LABlab(56.44, 21.45, -47.89)
CIE-LCHlch(56.44, 52.47, 294.13°)
OKLaboklab(63.27% 0.0212 -0.1354)
OKLCHoklch(63.27% 0.137 278.9)
XYZxyz(28.2569, 24.3568, 70.2165)
Luminance0.2436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FDB #DBD579
analogous
#79B0DB #797FDB #A479DB
triadic
#797FDB #DB797F #7FDB79
tetradic
#797FDB #DB79B0 #DBD579 #79DBA4
square
#797FDB #DB79B0 #DBD579 #79DBA4
split-complementary
#797FDB #DBA479 #B0DB79
monochromatic
#2E36AC #4951CE #797FDB #A9ADE8 #D9DBF5

Accessibility & contrast

On white

3.58
#797FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#797FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FDB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FDB#FFFFFF#000000##000000
##797FDB1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8BDF
Deuteranopia (green-blind)
#5584D9
Tritanopia (blue-blind)
#5892A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797fdb;
/* rgb */ color: rgb(121, 127, 219);
/* oklch */ color: oklch(63.3% 0.137 278.9);
Tailwind
colors: {
  custom: {
    50: '#a4a4e6',
    500: '#797fdb',
    950: '#000000',
  },
}
SCSS
$custom: #797fdb;
$custom-light: #a4a4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#797fdb",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 236.327,
    "s": 57.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.63271,
    "c": 0.13703,
    "h": 278.9
  },
  "luminance": 0.24358
}

Semantic roles & 50–950 ramp

primary
#797FDB
secondary
#E8E6C8
accent
#BB20C5
background
#FAFAFE
surface
#F4F3FC
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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