#6872EC#6872EC

#6872EC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.7% C 0.181 H 276.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#6872EC
RGBrgb(104, 114, 236)
HSLhsl(235, 78%, 67%)
HSVhsv(235, 56%, 93%)
CMYKcmyk(55.9%, 51.7%, 0%, 7.5%)
CIE-LABlab(52.98, 30.78, -63.01)
CIE-LCHlch(52.98, 70.13, 296.03°)
OKLaboklab(60.67% 0.0191 -0.1803)
OKLCHoklch(60.67% 0.181 276)
XYZxyz(26.8617, 21.0319, 81.9847)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6872EC #ECE268
analogous
#68B4EC #6872EC #A068EC
triadic
#6872EC #EC6872 #72EC68
tetradic
#6872EC #EC68B4 #ECE268 #68ECA0
square
#6872EC #EC68B4 #ECE268 #68ECA0
split-complementary
#6872EC #ECA068 #B4EC68
monochromatic
#1825C1 #323FE5 #6872EC #9EA5F3 #D5D8FA

Accessibility & contrast

On white

4.03
#6872EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#6872EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6872EC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6872EC#FFFFFF#000000##000000
##6872EC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D84F0
Deuteranopia (green-blind)
#0E79E9
Tritanopia (blue-blind)
#1B8EA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6872ec;
/* rgb */ color: rgb(104, 114, 236);
/* oklch */ color: oklch(60.7% 0.181 276.0);
Tailwind
colors: {
  custom: {
    50: '#9d9af3',
    500: '#6872ec',
    950: '#000000',
  },
}
SCSS
$custom: #6872ec;
$custom-light: #9d9af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6872ec",
  "rgb": {
    "r": 104,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 235.455,
    "s": 77.647,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60669,
    "c": 0.18128,
    "h": 276
  },
  "luminance": 0.21034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6872EC

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

Preview Lab → · Contrast checker → · Palette generator →

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