#6871E5#6871E5

#6871E5 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.173 H 276.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#6871E5
RGBrgb(104, 113, 229)
HSLhsl(236, 71%, 65%)
HSVhsv(236, 55%, 90%)
CMYKcmyk(54.6%, 50.7%, 0%, 10.2%)
CIE-LABlab(52.30, 29.16, -60.20)
CIE-LCHlch(52.30, 66.89, 295.85°)
OKLaboklab(60.01% 0.0196 -0.172)
OKLCHoklch(60.01% 0.173 276.5)
XYZxyz(25.7524, 20.4087, 76.6958)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871E5 #E5DC68
analogous
#68AFE5 #6871E5 #9D68E5
triadic
#6871E5 #E56871 #71E568
tetradic
#6871E5 #E568AF #E5DC68 #68E59D
square
#6871E5 #E568AF #E5DC68 #68E59D
split-complementary
#6871E5 #E59D68 #AFE568
monochromatic
#1F2AB4 #3440DC #6871E5 #9CA2EE #D0D3F7

Accessibility & contrast

On white

4.13
#6871E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#6871E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871E5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871E5#FFFFFF#000000##000000
##6871E51.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3482E9
Deuteranopia (green-blind)
#2078E3
Tritanopia (blue-blind)
#288BA0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6871e5;
/* rgb */ color: rgb(104, 113, 229);
/* oklch */ color: oklch(60.0% 0.173 276.5);
Tailwind
colors: {
  custom: {
    50: '#9c99ee',
    500: '#6871e5',
    950: '#000000',
  },
}
SCSS
$custom: #6871e5;
$custom-light: #9c99ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6871e5",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 235.68,
    "s": 70.621,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60011,
    "c": 0.17312,
    "h": 276.5
  },
  "luminance": 0.2041
}

Semantic roles & 50–950 ramp

primary
#6871E5
secondary
#E9E6BF
accent
#C513D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6871E5

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

Preview Lab → · Contrast checker → · Palette generator →

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