#6871DF#6871DF

#6871DF is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.6% C 0.165 H 276.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#6871DF
RGBrgb(104, 113, 223)
HSLhsl(235, 65%, 64%)
HSVhsv(235, 53%, 87%)
CMYKcmyk(53.4%, 49.3%, 0%, 12.5%)
CIE-LABlab(51.93, 27.27, -57.42)
CIE-LCHlch(51.93, 63.56, 295.40°)
OKLaboklab(59.61% 0.0191 -0.1638)
OKLCHoklch(59.61% 0.165 276.6)
XYZxyz(24.9291, 20.0794, 72.3598)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871DF #DFD668
analogous
#68ADDF #6871DF #9B68DF
triadic
#6871DF #DF6871 #71DF68
tetradic
#6871DF #DF68AD #DFD668 #68DF9B
square
#6871DF #DF68AD #DFD668 #68DF9B
split-complementary
#6871DF #DF9B68 #ADDF68
monochromatic
#242EA9 #3642D4 #6871DF #9BA0EA #CDD0F4

Accessibility & contrast

On white

4.19
#6871DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#6871DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871DF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871DF#FFFFFF#000000##000000
##6871DF1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B81E3
Deuteranopia (green-blind)
#2C77DD
Tritanopia (blue-blind)
#30899D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #6871df;
/* rgb */ color: rgb(104, 113, 223);
/* oklch */ color: oklch(59.6% 0.165 276.6);
Tailwind
colors: {
  custom: {
    50: '#9b99ea',
    500: '#6871df',
    950: '#000000',
  },
}
SCSS
$custom: #6871df;
$custom-light: #9b99ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6871df",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 235.462,
    "s": 65.027,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59614,
    "c": 0.16493,
    "h": 276.6
  },
  "luminance": 0.20081
}

Semantic roles & 50–950 ramp

primary
#6871DF
secondary
#E6E3BD
accent
#BF19CD
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6871DF

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

Preview Lab → · Contrast checker → · Palette generator →

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