#6871DC#6871DC

#6871DC is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.161 H 276.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#6871DC
RGBrgb(104, 113, 220)
HSLhsl(235, 62%, 64%)
HSVhsv(235, 53%, 86%)
CMYKcmyk(52.7%, 48.6%, 0%, 13.7%)
CIE-LABlab(51.75, 26.32, -56.02)
CIE-LCHlch(51.75, 61.89, 295.17°)
OKLaboklab(59.42% 0.0188 -0.1597)
OKLCHoklch(59.42% 0.161 276.7)
XYZxyz(24.5282, 19.9190, 70.2485)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871DC #DCD368
analogous
#68ABDC #6871DC #9968DC
triadic
#6871DC #DC6871 #71DC68
tetradic
#6871DC #DC68AB #DCD368 #68DC99
square
#6871DC #DC68AB #DCD368 #68DC99
split-complementary
#6871DC #DC9968 #ABDC68
monochromatic
#2630A4 #3642D0 #6871DC #9AA0E8 #CBCEF3

Accessibility & contrast

On white

4.21
#6871DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#6871DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871DC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871DC#FFFFFF#000000##000000
##6871DC1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80E0
Deuteranopia (green-blind)
#3077DA
Tritanopia (blue-blind)
#33899C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #6871dc;
/* rgb */ color: rgb(104, 113, 220);
/* oklch */ color: oklch(59.4% 0.161 276.7);
Tailwind
colors: {
  custom: {
    50: '#9b99e7',
    500: '#6871dc',
    950: '#000000',
  },
}
SCSS
$custom: #6871dc;
$custom-light: #9b99e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6871dc",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 235.345,
    "s": 62.366,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59419,
    "c": 0.1608,
    "h": 276.7
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#6871DC
secondary
#E4E1BB
accent
#BD1BCA
background
#FAF9FE
surface
#F3F2FC
border
#CDCCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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