#6872EA#6872EA

#6872EA is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.5% C 0.179 H 276.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6872EA
RGBrgb(104, 114, 234)
HSLhsl(235, 76%, 66%)
HSVhsv(235, 56%, 92%)
CMYKcmyk(55.6%, 51.3%, 0%, 8.2%)
CIE-LABlab(52.86, 30.14, -62.10)
CIE-LCHlch(52.86, 69.03, 295.89°)
OKLaboklab(60.53% 0.019 -0.1776)
OKLCHoklch(60.53% 0.179 276.1)
XYZxyz(26.5728, 20.9163, 80.4629)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6872EA #EAE068
analogous
#68B3EA #6872EA #9F68EA
triadic
#6872EA #EA6872 #72EA68
tetradic
#6872EA #EA68B3 #EAE068 #68EA9F
square
#6872EA #EA68B3 #EAE068 #68EA9F
split-complementary
#6872EA #EA9F68 #B3EA68
monochromatic
#1A27BD #3240E3 #6872EA #9EA4F1 #D3D6F9

Accessibility & contrast

On white

4.05
#6872EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#6872EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6872EA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6872EA#FFFFFF#000000##000000
##6872EA1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3084EE
Deuteranopia (green-blind)
#1679E7
Tritanopia (blue-blind)
#1F8DA3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6872ea;
/* rgb */ color: rgb(104, 114, 234);
/* oklch */ color: oklch(60.5% 0.179 276.1);
Tailwind
colors: {
  custom: {
    50: '#9d9af1',
    500: '#6872ea',
    950: '#000000',
  },
}
SCSS
$custom: #6872ea;
$custom-light: #9d9af1;
$custom-dark: #000000;
JSON
{
  "hex": "#6872ea",
  "rgb": {
    "r": 104,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 235.385,
    "s": 75.581,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60534,
    "c": 0.17859,
    "h": 276.1
  },
  "luminance": 0.20918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6872EA

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

Preview Lab → · Contrast checker → · Palette generator →

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