#6878EB#6878EB

#6878EB is a mid, vivid blue. Relative luminance 0.224; OKLCH L 61.7% C 0.172 H 274.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#6878EB
RGBrgb(104, 120, 235)
HSLhsl(233, 77%, 66%)
HSVhsv(233, 56%, 92%)
CMYKcmyk(55.7%, 48.9%, 0%, 7.8%)
CIE-LABlab(54.42, 26.83, -60.14)
CIE-LCHlch(54.42, 65.86, 294.04°)
OKLaboklab(61.73% 0.0128 -0.1718)
OKLCHoklch(61.73% 0.172 274.3)
XYZxyz(27.4159, 22.3722, 81.4547)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6878EB #EBDB68
analogous
#68BAEB #6878EB #9A68EB
triadic
#6878EB #EB6878 #78EB68
tetradic
#6878EB #EB68BA #EBDB68 #68EB9A
square
#6878EB #EB68BA #EBDB68 #68EB9A
split-complementary
#6878EB #EB9A68 #BAEB68
monochromatic
#192EBF #3248E4 #6878EB #9EA8F2 #D4D9F9

Accessibility & contrast

On white

3.84
#6878EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#6878EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6878EB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6878EB#FFFFFF#000000##000000
##6878EB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E88EF
Deuteranopia (green-blind)
#2A7DE9
Tritanopia (blue-blind)
#1B92A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #6878eb;
/* rgb */ color: rgb(104, 120, 235);
/* oklch */ color: oklch(61.7% 0.172 274.3);
Tailwind
colors: {
  custom: {
    50: '#9d9ef2',
    500: '#6878eb',
    950: '#000000',
  },
}
SCSS
$custom: #6878eb;
$custom-light: #9d9ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#6878eb",
  "rgb": {
    "r": 104,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 232.672,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61731,
    "c": 0.17226,
    "h": 274.3
  },
  "luminance": 0.22374
}

Semantic roles & 50–950 ramp

primary
#6878EB
secondary
#EDE7C2
accent
#C00DD9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6878EB

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

Preview Lab → · Contrast checker → · Palette generator →

#6878EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva