#6871EC#6871EC

#6871EC is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.5% C 0.183 H 276.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#6871EC
RGBrgb(104, 113, 236)
HSLhsl(236, 78%, 67%)
HSVhsv(236, 56%, 93%)
CMYKcmyk(55.9%, 52.1%, 0%, 7.5%)
CIE-LABlab(52.74, 31.38, -63.41)
CIE-LCHlch(52.74, 70.75, 296.33°)
OKLaboklab(60.49% 0.0201 -0.1814)
OKLCHoklch(60.49% 0.183 276.3)
XYZxyz(26.7495, 20.8076, 81.9473)
Luminance0.2081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871EC #ECE368
analogous
#68B3EC #6871EC #A168EC
triadic
#6871EC #EC6871 #71EC68
tetradic
#6871EC #EC68B3 #ECE368 #68ECA1
square
#6871EC #EC68B3 #ECE368 #68ECA1
split-complementary
#6871EC #ECA168 #B3EC68
monochromatic
#1824C1 #323EE5 #6871EC #9EA4F3 #D5D7FA

Accessibility & contrast

On white

4.07
#6871EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#6871EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871EC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871EC#FFFFFF#000000##000000
##6871EC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A84F0
Deuteranopia (green-blind)
#0679E9
Tritanopia (blue-blind)
#1B8DA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6871ec;
/* rgb */ color: rgb(104, 113, 236);
/* oklch */ color: oklch(60.5% 0.183 276.3);
Tailwind
colors: {
  custom: {
    50: '#9d99f3',
    500: '#6871ec',
    950: '#000000',
  },
}
SCSS
$custom: #6871ec;
$custom-light: #9d99f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6871ec",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 235.909,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60485,
    "c": 0.18255,
    "h": 276.3
  },
  "luminance": 0.20809
}

Semantic roles & 50–950 ramp

primary
#6871EC
secondary
#EDEAC3
accent
#CC0CDA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871EC

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

Preview Lab → · Contrast checker → · Palette generator →

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