#6871E8#6871E8

#6871E8 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.2% C 0.177 H 276.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#6871E8
RGBrgb(104, 113, 232)
HSLhsl(236, 74%, 66%)
HSVhsv(236, 55%, 91%)
CMYKcmyk(55.2%, 51.3%, 0%, 9%)
CIE-LABlab(52.48, 30.11, -61.58)
CIE-LCHlch(52.48, 68.55, 296.06°)
OKLaboklab(60.21% 0.0199 -0.1761)
OKLCHoklch(60.21% 0.177 276.4)
XYZxyz(26.1749, 20.5777, 78.9209)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871E8 #E8DF68
analogous
#68B1E8 #6871E8 #9F68E8
triadic
#6871E8 #E86871 #71E868
tetradic
#6871E8 #E868B1 #E8DF68 #68E89F
square
#6871E8 #E868B1 #E8DF68 #68E89F
split-complementary
#6871E8 #E89F68 #B1E868
monochromatic
#1C27B9 #333FE0 #6871E8 #9DA3F0 #D2D5F8

Accessibility & contrast

On white

4.10
#6871E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#6871E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871E8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871E8#FFFFFF#000000##000000
##6871E81.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3083EC
Deuteranopia (green-blind)
#1878E5
Tritanopia (blue-blind)
#238CA2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6871e8;
/* rgb */ color: rgb(104, 113, 232);
/* oklch */ color: oklch(60.2% 0.177 276.4);
Tailwind
colors: {
  custom: {
    50: '#9d99f0',
    500: '#6871e8',
    950: '#000000',
  },
}
SCSS
$custom: #6871e8;
$custom-light: #9d99f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6871e8",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 235.781,
    "s": 73.563,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60212,
    "c": 0.17718,
    "h": 276.4
  },
  "luminance": 0.2058
}

Semantic roles & 50–950 ramp

primary
#6871E8
secondary
#EBE8C1
accent
#C810D6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871E8

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

Preview Lab → · Contrast checker → · Palette generator →

#6871E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva