#6878EA#6878EA

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

Color values

HEX#6878EA
RGBrgb(104, 120, 234)
HSLhsl(233, 76%, 66%)
HSVhsv(233, 56%, 92%)
CMYKcmyk(55.6%, 48.7%, 0%, 8.2%)
CIE-LABlab(54.36, 26.51, -59.68)
CIE-LCHlch(54.36, 65.31, 293.95°)
OKLaboklab(61.67% 0.0127 -0.1704)
OKLCHoklch(61.67% 0.171 274.3)
XYZxyz(27.2719, 22.3146, 80.6960)
Luminance0.2232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6878EA #EADA68
analogous
#68B9EA #6878EA #9968EA
triadic
#6878EA #EA6878 #78EA68
tetradic
#6878EA #EA68B9 #EADA68 #68EA99
square
#6878EA #EA68B9 #EADA68 #68EA99
split-complementary
#6878EA #EA9968 #B9EA68
monochromatic
#1A2EBD #3248E3 #6878EA #9EA8F1 #D3D8F9

Accessibility & contrast

On white

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

On black

5.46
#6878EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6878EA
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6878EA#FFFFFF#000000##000000
##6878EA1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F88EE
Deuteranopia (green-blind)
#2C7DE8
Tritanopia (blue-blind)
#1D92A6
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #6878ea;
/* rgb */ color: rgb(104, 120, 234);
/* oklch */ color: oklch(61.7% 0.171 274.3);
Tailwind
colors: {
  custom: {
    50: '#9d9ef1',
    500: '#6878ea',
    950: '#000000',
  },
}
SCSS
$custom: #6878ea;
$custom-light: #9d9ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#6878ea",
  "rgb": {
    "r": 104,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 232.615,
    "s": 75.581,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61666,
    "c": 0.17089,
    "h": 274.3
  },
  "luminance": 0.22317
}

Semantic roles & 50–950 ramp

primary
#6878EA
secondary
#ECE7C2
accent
#BF0ED8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6878EA

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

Preview Lab → · Contrast checker → · Palette generator →

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