#6872E4#6872E4

#6872E4 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.1% C 0.170 H 276.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#6872E4
RGBrgb(104, 114, 228)
HSLhsl(235, 70%, 65%)
HSVhsv(235, 54%, 89%)
CMYKcmyk(54.4%, 50%, 0%, 10.6%)
CIE-LABlab(52.48, 28.24, -59.34)
CIE-LCHlch(52.48, 65.71, 295.45°)
OKLaboklab(60.13% 0.0185 -0.1694)
OKLCHoklch(60.13% 0.17 276.2)
XYZxyz(25.7254, 20.5774, 76.0000)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6872E4 #E4DA68
analogous
#68B0E4 #6872E4 #9C68E4
triadic
#6872E4 #E46872 #72E468
tetradic
#6872E4 #E468B0 #E4DA68 #68E49C
square
#6872E4 #E468B0 #E4DA68 #68E49C
split-complementary
#6872E4 #E49C68 #B0E468
monochromatic
#202CB2 #3442DB #6872E4 #9CA2ED #D0D3F7

Accessibility & contrast

On white

4.10
#6872E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#6872E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6872E4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6872E4#FFFFFF#000000##000000
##6872E41.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3883E8
Deuteranopia (green-blind)
#2578E2
Tritanopia (blue-blind)
#298CA0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6872e4;
/* rgb */ color: rgb(104, 114, 228);
/* oklch */ color: oklch(60.1% 0.170 276.2);
Tailwind
colors: {
  custom: {
    50: '#9c9aed',
    500: '#6872e4',
    950: '#000000',
  },
}
SCSS
$custom: #6872e4;
$custom-light: #9c9aed;
$custom-dark: #000000;
JSON
{
  "hex": "#6872e4",
  "rgb": {
    "r": 104,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 235.161,
    "s": 69.663,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60132,
    "c": 0.17045,
    "h": 276.2
  },
  "luminance": 0.20579
}

Semantic roles & 50–950 ramp

primary
#6872E4
secondary
#E9E6BF
accent
#C214D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6872E4

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

Preview Lab → · Contrast checker → · Palette generator →

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