#6871D8#6871D8

#6871D8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.155 H 276.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#6871D8
RGBrgb(104, 113, 216)
HSLhsl(235, 59%, 63%)
HSVhsv(235, 52%, 85%)
CMYKcmyk(51.9%, 47.7%, 0%, 15.3%)
CIE-LABlab(51.51, 25.07, -54.14)
CIE-LCHlch(51.51, 59.66, 294.85°)
OKLaboklab(59.16% 0.0184 -0.1542)
OKLCHoklch(59.16% 0.155 276.8)
XYZxyz(24.0048, 19.7097, 67.4919)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871D8 #D8CF68
analogous
#68A9D8 #6871D8 #9768D8
triadic
#6871D8 #D86871 #71D868
tetradic
#6871D8 #D868A9 #D8CF68 #68D897
square
#6871D8 #D868A9 #D8CF68 #68D897
split-complementary
#6871D8 #D89768 #A9D868
monochromatic
#29329D #3743CB #6871D8 #999FE5 #C9CCF1

Accessibility & contrast

On white

4.25
#6871D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#6871D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871D8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871D8#FFFFFF#000000##000000
##6871D81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#427FDC
Deuteranopia (green-blind)
#3676D6
Tritanopia (blue-blind)
#37879A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #6871d8;
/* rgb */ color: rgb(104, 113, 216);
/* oklch */ color: oklch(59.2% 0.155 276.8);
Tailwind
colors: {
  custom: {
    50: '#9a99e5',
    500: '#6871d8',
    950: '#000000',
  },
}
SCSS
$custom: #6871d8;
$custom-light: #9a99e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6871d8",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 216
  },
  "hsl": {
    "h": 235.179,
    "s": 58.947,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59162,
    "c": 0.15527,
    "h": 276.8
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#6871D8
secondary
#E2DFBA
accent
#B91FC7
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0F0E16
muted
#7E7E84

Preview Lab

Preview with #6871D8

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

Preview Lab → · Contrast checker → · Palette generator →

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