#6871DB#6871DB

#6871DB is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.159 H 276.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#6871DB
RGBrgb(104, 113, 219)
HSLhsl(235, 61%, 63%)
HSVhsv(235, 53%, 86%)
CMYKcmyk(52.5%, 48.4%, 0%, 14.1%)
CIE-LABlab(51.69, 26.01, -55.55)
CIE-LCHlch(51.69, 61.34, 295.09°)
OKLaboklab(59.35% 0.0187 -0.1583)
OKLCHoklch(59.35% 0.159 276.7)
XYZxyz(24.3962, 19.8662, 69.5531)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871DB #DBD268
analogous
#68AADB #6871DB #9868DB
triadic
#6871DB #DB6871 #71DB68
tetradic
#6871DB #DB68AA #DBD268 #68DB98
square
#6871DB #DB68AA #DBD268 #68DB98
split-complementary
#6871DB #DB9868 #AADB68
monochromatic
#2730A2 #3743CF #6871DB #999FE7 #CBCEF3

Accessibility & contrast

On white

4.22
#6871DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#6871DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871DB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871DB#FFFFFF#000000##000000
##6871DB1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F80DF
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#34889B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #6871db;
/* rgb */ color: rgb(104, 113, 219);
/* oklch */ color: oklch(59.4% 0.159 276.7);
Tailwind
colors: {
  custom: {
    50: '#9b99e7',
    500: '#6871db',
    950: '#000000',
  },
}
SCSS
$custom: #6871db;
$custom-light: #9b99e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6871db",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 235.304,
    "s": 61.497,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59354,
    "c": 0.15942,
    "h": 276.7
  },
  "luminance": 0.19868
}

Semantic roles & 50–950 ramp

primary
#6871DB
secondary
#E4E1BB
accent
#BC1CC9
background
#FAF9FE
surface
#F3F2FC
border
#CDCCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6871DB

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

Preview Lab → · Contrast checker → · Palette generator →

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