#7340BF#7340BF

#7340BF is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.189 H 297.6°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7340BF
RGBrgb(115, 64, 191)
HSLhsl(264, 50%, 50%)
HSVhsv(264, 66%, 75%)
CMYKcmyk(39.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.70, 48.65, -58.73)
CIE-LCHlch(39.70, 76.26, 309.64°)
OKLaboklab(50.14% 0.0875 -0.1675)
OKLCHoklch(50.14% 0.189 297.6)
XYZxyz(18.3052, 11.0729, 50.4530)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7340BF #8CBF40
analogous
#404DBF #7340BF #B240BF
triadic
#7340BF #BF7340 #40BF73
tetradic
#7340BF #BF404D #8CBF40 #40BFB2
square
#7340BF #BF404D #8CBF40 #40BFB2
split-complementary
#7340BF #BFB240 #4DBF40
monochromatic
#3C2163 #573191 #7340BF #956ECE #B69CDE

Accessibility & contrast

On white

6.53
#7340BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7340BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7340BF
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7340BF#FFFFFF#000000##FFFFFF
##7340BF1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#605E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7340bf;
/* rgb */ color: rgb(115, 64, 191);
/* oklch */ color: oklch(50.1% 0.189 297.6);
Tailwind
colors: {
  custom: {
    50: '#a178d3',
    500: '#7340bf',
    950: '#000000',
  },
}
SCSS
$custom: #7340bf;
$custom-light: #a178d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7340bf",
  "rgb": {
    "r": 115,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 264.094,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50143,
    "c": 0.18898,
    "h": 297.6
  },
  "luminance": 0.11073
}

Semantic roles & 50–950 ramp

primary
#7340BF
secondary
#B3CA91
accent
#D94EA2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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