#6871F2#6871F2

#6871F2 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.9% C 0.191 H 276.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#6871F2
RGBrgb(104, 113, 242)
HSLhsl(236, 84%, 68%)
HSVhsv(236, 57%, 95%)
CMYKcmyk(57%, 53.3%, 0%, 5.1%)
CIE-LABlab(53.13, 33.29, -66.13)
CIE-LCHlch(53.13, 74.04, 296.72°)
OKLaboklab(60.9% 0.0204 -0.1894)
OKLCHoklch(60.9% 0.191 276.2)
XYZxyz(27.6359, 21.1621, 86.6156)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871F2 #F2E968
analogous
#68B6F2 #6871F2 #A468F2
triadic
#6871F2 #F26871 #71F268
tetradic
#6871F2 #F268B6 #F2E968 #68F2A4
square
#6871F2 #F268B6 #F2E968 #68F2A4
split-complementary
#6871F2 #F2A468 #B6F268
monochromatic
#121ECE #303CED #6871F2 #A0A6F7 #D9DBFC

Accessibility & contrast

On white

4.01
#6871F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#6871F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871F2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871F2#FFFFFF#000000##000000
##6871F21.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E85F6
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#088FA7
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #6871f2;
/* rgb */ color: rgb(104, 113, 242);
/* oklch */ color: oklch(60.9% 0.191 276.2);
Tailwind
colors: {
  custom: {
    50: '#9e99f7',
    500: '#6871f2',
    950: '#000000',
  },
}
SCSS
$custom: #6871f2;
$custom-light: #9e99f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6871f2",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 236.087,
    "s": 84.146,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60899,
    "c": 0.19055,
    "h": 276.2
  },
  "luminance": 0.21164
}

Semantic roles & 50–950 ramp

primary
#6871F2
secondary
#F0EDC6
accent
#D205E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6871F2

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

Preview Lab → · Contrast checker → · Palette generator →

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