#6740BF#6740BF

#6740BF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.188 H 292.1°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#6740BF
RGBrgb(103, 64, 191)
HSLhsl(258, 50%, 50%)
HSVhsv(258, 66%, 75%)
CMYKcmyk(46.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.40, 46.30, -60.91)
CIE-LCHlch(38.40, 76.51, 307.24°)
OKLaboklab(48.9% 0.0708 -0.1743)
OKLCHoklch(48.9% 0.188 292.1)
XYZxyz(16.8283, 10.3114, 50.3837)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BF #98BF40
analogous
#4059BF #6740BF #A640BF
triadic
#6740BF #BF6740 #40BF67
tetradic
#6740BF #BF4059 #98BF40 #40BFA6
square
#6740BF #BF4059 #98BF40 #40BFA6
split-complementary
#6740BF #BFA640 #59BF40
monochromatic
#362163 #4E3191 #6740BF #8B6ECE #B09CDE

Accessibility & contrast

On white

6.86
#6740BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6740BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BF#FFFFFF#000000##FFFFFF
##6740BF1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#4C5F7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6740bf;
/* rgb */ color: rgb(103, 64, 191);
/* oklch */ color: oklch(48.9% 0.188 292.1);
Tailwind
colors: {
  custom: {
    50: '#9977d3',
    500: '#6740bf',
    950: '#000000',
  },
}
SCSS
$custom: #6740bf;
$custom-light: #9977d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6740bf",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 258.425,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48902,
    "c": 0.18813,
    "h": 292.1
  },
  "luminance": 0.10312
}

Semantic roles & 50–950 ramp

primary
#6740BF
secondary
#B8CA91
accent
#D94EAF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6740BF

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

Preview Lab → · Contrast checker → · Palette generator →

#6740BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva