#6874F2#6874F2

#6874F2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.4% C 0.187 H 275.4°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#6874F2
RGBrgb(104, 116, 242)
HSLhsl(235, 84%, 68%)
HSVhsv(235, 57%, 95%)
CMYKcmyk(57%, 52.1%, 0%, 5.1%)
CIE-LABlab(53.86, 31.48, -64.95)
CIE-LCHlch(53.86, 72.17, 295.86°)
OKLaboklab(61.45% 0.0175 -0.1859)
OKLCHoklch(61.45% 0.187 275.4)
XYZxyz(27.9761, 21.8426, 86.7290)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6874F2 #F2E668
analogous
#68B9F2 #6874F2 #A168F2
triadic
#6874F2 #F26874 #74F268
tetradic
#6874F2 #F268B9 #F2E668 #68F2A1
square
#6874F2 #F268B9 #F2E668 #68F2A1
split-complementary
#6874F2 #F2A168 #B9F268
monochromatic
#1222CE #3040ED #6874F2 #A0A8F7 #D9DCFC

Accessibility & contrast

On white

3.91
#6874F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#6874F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6874F2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6874F2#FFFFFF#000000##000000
##6874F21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A87F6
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#0591A8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #6874f2;
/* rgb */ color: rgb(104, 116, 242);
/* oklch */ color: oklch(61.4% 0.187 275.4);
Tailwind
colors: {
  custom: {
    50: '#9e9bf7',
    500: '#6874f2',
    950: '#000000',
  },
}
SCSS
$custom: #6874f2;
$custom-light: #9e9bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#6874f2",
  "rgb": {
    "r": 104,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 234.783,
    "s": 84.146,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61449,
    "c": 0.18676,
    "h": 275.4
  },
  "luminance": 0.21845
}

Semantic roles & 50–950 ramp

primary
#6874F2
secondary
#F0ECC6
accent
#CD05E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6874F2

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

Preview Lab → · Contrast checker → · Palette generator →

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