#6871EF#6871EF

#6871EF is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.7% C 0.187 H 276.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#6871EF
RGBrgb(104, 113, 239)
HSLhsl(236, 81%, 67%)
HSVhsv(236, 56%, 94%)
CMYKcmyk(56.5%, 52.7%, 0%, 6.3%)
CIE-LABlab(52.93, 32.33, -64.77)
CIE-LCHlch(52.93, 72.39, 296.53°)
OKLaboklab(60.69% 0.0203 -0.1855)
OKLCHoklch(60.69% 0.187 276.2)
XYZxyz(27.1890, 20.9834, 84.2621)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871EF #EFE668
analogous
#68B5EF #6871EF #A368EF
triadic
#6871EF #EF6871 #71EF68
tetradic
#6871EF #EF68B5 #EFE668 #68EFA3
square
#6871EF #EF68B5 #EFE668 #68EFA3
split-complementary
#6871EF #EFA368 #B5EF68
monochromatic
#1521C7 #313DE9 #6871EF #9FA5F5 #D7D9FB

Accessibility & contrast

On white

4.04
#6871EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#6871EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871EF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871EF#FFFFFF#000000##000000
##6871EF1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2484F3
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#148EA5
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6871ef;
/* rgb */ color: rgb(104, 113, 239);
/* oklch */ color: oklch(60.7% 0.187 276.2);
Tailwind
colors: {
  custom: {
    50: '#9e99f5',
    500: '#6871ef',
    950: '#000000',
  },
}
SCSS
$custom: #6871ef;
$custom-light: #9e99f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6871ef",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 236,
    "s": 80.838,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60691,
    "c": 0.18657,
    "h": 276.2
  },
  "luminance": 0.20985
}

Semantic roles & 50–950 ramp

primary
#6871EF
secondary
#EFECC4
accent
#CF08DD
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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