#6798E5#6798E5

#6798E5 is a light, vivid blue. Relative luminance 0.310; OKLCH L 67.8% C 0.126 H 259.1°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#6798E5
RGBrgb(103, 152, 229)
HSLhsl(217, 71%, 65%)
HSVhsv(217, 55%, 90%)
CMYKcmyk(55%, 33.6%, 0%, 10.2%)
CIE-LABlab(62.50, 5.65, -43.96)
CIE-LCHlch(62.50, 44.32, 277.32°)
OKLaboklab(67.82% -0.0238 -0.1241)
OKLCHoklch(67.82% 0.126 259.1)
XYZxyz(30.9597, 30.9947, 78.4646)
Luminance0.3100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6798E5 #E5B467
analogous
#67D7E5 #6798E5 #7567E5
triadic
#6798E5 #E56798 #98E567
tetradic
#6798E5 #E567D7 #E5B467 #67E575
square
#6798E5 #E567D7 #E5B467 #67E575
split-complementary
#6798E5 #E57567 #D7E567
monochromatic
#1F58B3 #3375DC #6798E5 #9BBBEE #D0DFF7

Accessibility & contrast

On white

2.92
#6798E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#6798E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #6798E5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6798E5#FFFFFF#000000##000000
##6798E51.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#799EE8
Deuteranopia (green-blind)
#6992E3
Tritanopia (blue-blind)
#12A9B4
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #6798e5;
/* rgb */ color: rgb(103, 152, 229);
/* oklch */ color: oklch(67.8% 0.126 259.1);
Tailwind
colors: {
  custom: {
    50: '#9bb6ed',
    500: '#6798e5',
    950: '#000000',
  },
}
SCSS
$custom: #6798e5;
$custom-light: #9bb6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6798e5",
  "rgb": {
    "r": 103,
    "g": 152,
    "b": 229
  },
  "hsl": {
    "h": 216.667,
    "s": 70.787,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67824,
    "c": 0.12636,
    "h": 259.1
  },
  "luminance": 0.30997
}

Semantic roles & 50–950 ramp

primary
#6798E5
secondary
#E9D9BF
accent
#8813D3
background
#FAFBFE
surface
#F3F6FD
border
#CDD0D5
text
#0F1116
muted
#7F8084

Preview Lab

Preview with #6798E5

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

Preview Lab → · Contrast checker → · Palette generator →

#6798E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva