#6862DC#6862DC

#6862DC is a mid, vivid blue. Relative luminance 0.168; OKLCH L 56.7% C 0.181 H 281.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#6862DC
RGBrgb(104, 98, 220)
HSLhsl(243, 64%, 62%)
HSVhsv(243, 55%, 86%)
CMYKcmyk(52.7%, 55.5%, 0%, 13.7%)
CIE-LABlab(48.06, 35.40, -61.94)
CIE-LCHlch(48.06, 71.35, 299.75°)
OKLaboklab(56.66% 0.035 -0.1772)
OKLCHoklch(56.66% 0.181 281.2)
XYZxyz(22.9909, 16.8444, 69.7361)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6862DC #D6DC62
analogous
#6299DC #6862DC #A562DC
triadic
#6862DC #DC6862 #62DC68
tetradic
#6862DC #DC6299 #D6DC62 #62DCA5
square
#6862DC #DC6299 #D6DC62 #62DCA5
split-complementary
#6862DC #DCA562 #99DC62
monochromatic
#2A24A0 #3830D1 #6862DC #9894E7 #C8C6F2

Accessibility & contrast

On white

4.81
#6862DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#6862DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6862DC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6862DC#FFFFFF#000000##FFFFFF
##6862DC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A77E0
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#367E95
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6862dc;
/* rgb */ color: rgb(104, 98, 220);
/* oklch */ color: oklch(56.7% 0.181 281.2);
Tailwind
colors: {
  custom: {
    50: '#9c8fe8',
    500: '#6862dc',
    950: '#000000',
  },
}
SCSS
$custom: #6862dc;
$custom-light: #9c8fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#6862dc",
  "rgb": {
    "r": 104,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 242.951,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.18066,
    "h": 281.2
  },
  "luminance": 0.16846
}

Semantic roles & 50–950 ramp

primary
#6862DC
secondary
#E1E3B7
accent
#CB1AC3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #6862DC

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

Preview Lab → · Contrast checker → · Palette generator →

#6862DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva