#6871EB#6871EB

#6871EB is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.4% C 0.181 H 276.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#6871EB
RGBrgb(104, 113, 235)
HSLhsl(236, 77%, 66%)
HSVhsv(236, 56%, 92%)
CMYKcmyk(55.7%, 51.9%, 0%, 7.8%)
CIE-LABlab(52.67, 31.06, -62.95)
CIE-LCHlch(52.67, 70.20, 296.26°)
OKLaboklab(60.42% 0.02 -0.1801)
OKLCHoklch(60.42% 0.181 276.4)
XYZxyz(26.6046, 20.7496, 81.1843)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871EB #EBE268
analogous
#68B3EB #6871EB #A168EB
triadic
#6871EB #EB6871 #71EB68
tetradic
#6871EB #EB68B3 #EBE268 #68EBA1
square
#6871EB #EB68B3 #EBE268 #68EBA1
split-complementary
#6871EB #EBA168 #B3EB68
monochromatic
#1925BF #323EE4 #6871EB #9EA4F2 #D4D7F9

Accessibility & contrast

On white

4.08
#6871EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#6871EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871EB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871EB#FFFFFF#000000##000000
##6871EB1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C83EF
Deuteranopia (green-blind)
#0C78E8
Tritanopia (blue-blind)
#1D8DA3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6871eb;
/* rgb */ color: rgb(104, 113, 235);
/* oklch */ color: oklch(60.4% 0.181 276.4);
Tailwind
colors: {
  custom: {
    50: '#9d99f2',
    500: '#6871eb',
    950: '#000000',
  },
}
SCSS
$custom: #6871eb;
$custom-light: #9d99f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6871eb",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 235.878,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60416,
    "c": 0.18121,
    "h": 276.4
  },
  "luminance": 0.20751
}

Semantic roles & 50–950 ramp

primary
#6871EB
secondary
#EDEAC2
accent
#CB0DD9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871EB

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

Preview Lab → · Contrast checker → · Palette generator →

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