#6871EA#6871EA

#6871EA is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.3% C 0.180 H 276.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#6871EA
RGBrgb(104, 113, 234)
HSLhsl(236, 76%, 66%)
HSVhsv(236, 56%, 92%)
CMYKcmyk(55.6%, 51.7%, 0%, 8.2%)
CIE-LABlab(52.61, 30.74, -62.50)
CIE-LCHlch(52.61, 69.65, 296.19°)
OKLaboklab(60.35% 0.02 -0.1788)
OKLCHoklch(60.35% 0.18 276.4)
XYZxyz(26.4606, 20.6920, 80.4256)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871EA #EAE168
analogous
#68B2EA #6871EA #A068EA
triadic
#6871EA #EA6871 #71EA68
tetradic
#6871EA #EA68B2 #EAE168 #68EAA0
square
#6871EA #EA68B2 #EAE168 #68EAA0
split-complementary
#6871EA #EAA068 #B2EA68
monochromatic
#1A26BD #323EE3 #6871EA #9EA4F1 #D3D6F9

Accessibility & contrast

On white

4.09
#6871EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#6871EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871EA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871EA#FFFFFF#000000##000000
##6871EA1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D83EE
Deuteranopia (green-blind)
#1178E7
Tritanopia (blue-blind)
#1F8CA3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6871ea;
/* rgb */ color: rgb(104, 113, 234);
/* oklch */ color: oklch(60.3% 0.180 276.4);
Tailwind
colors: {
  custom: {
    50: '#9d99f1',
    500: '#6871ea',
    950: '#000000',
  },
}
SCSS
$custom: #6871ea;
$custom-light: #9d99f1;
$custom-dark: #000000;
JSON
{
  "hex": "#6871ea",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 235.846,
    "s": 75.581,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60348,
    "c": 0.17987,
    "h": 276.4
  },
  "luminance": 0.20694
}

Semantic roles & 50–950 ramp

primary
#6871EA
secondary
#ECE9C2
accent
#CA0ED8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871EA

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

Preview Lab → · Contrast checker → · Palette generator →

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