#6878EF#6878EF

#6878EF is a mid, vivid blue. Relative luminance 0.226; OKLCH L 62.0% C 0.178 H 274.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#6878EF
RGBrgb(104, 120, 239)
HSLhsl(233, 81%, 67%)
HSVhsv(233, 56%, 94%)
CMYKcmyk(56.5%, 49.8%, 0%, 6.3%)
CIE-LABlab(54.66, 28.11, -61.98)
CIE-LCHlch(54.66, 68.06, 294.39°)
OKLaboklab(61.99% 0.0132 -0.1772)
OKLCHoklch(61.99% 0.178 274.3)
XYZxyz(28.0003, 22.6059, 84.5325)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6878EF #EFDF68
analogous
#68BBEF #6878EF #9C68EF
triadic
#6878EF #EF6878 #78EF68
tetradic
#6878EF #EF68BB #EFDF68 #68EF9C
square
#6878EF #EF68BB #EFDF68 #68EF9C
split-complementary
#6878EF #EF9C68 #BBEF68
monochromatic
#152AC7 #3147E9 #6878EF #9FA9F5 #D7DBFB

Accessibility & contrast

On white

3.80
#6878EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#6878EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6878EF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6878EF#FFFFFF#000000##000000
##6878EF1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A89F3
Deuteranopia (green-blind)
#227DEC
Tritanopia (blue-blind)
#1093A8
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #6878ef;
/* rgb */ color: rgb(104, 120, 239);
/* oklch */ color: oklch(62.0% 0.178 274.3);
Tailwind
colors: {
  custom: {
    50: '#9d9ef5',
    500: '#6878ef',
    950: '#000000',
  },
}
SCSS
$custom: #6878ef;
$custom-light: #9d9ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#6878ef",
  "rgb": {
    "r": 104,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 232.889,
    "s": 80.838,
    "l": 67.255
  },
  "oklch": {
    "l": 0.61994,
    "c": 0.17767,
    "h": 274.3
  },
  "luminance": 0.22608
}

Semantic roles & 50–950 ramp

primary
#6878EF
secondary
#EFEAC4
accent
#C408DD
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6878EF

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

Preview Lab → · Contrast checker → · Palette generator →

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