#6340BE#6340BE

#6340BE is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.187 H 290.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6340BE
RGBrgb(99, 64, 190)
HSLhsl(257, 50%, 50%)
HSVhsv(257, 66%, 75%)
CMYKcmyk(47.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.91, 45.26, -61.13)
CIE-LCHlch(37.91, 76.07, 306.52°)
OKLaboklab(48.43% 0.0653 -0.1751)
OKLCHoklch(48.43% 0.187 290.5)
XYZxyz(16.2706, 10.0365, 49.7852)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340BE #9BBE40
analogous
#405CBE #6340BE #A240BE
triadic
#6340BE #BE6340 #40BE63
tetradic
#6340BE #BE405C #9BBE40 #40BEA2
square
#6340BE #BE405C #9BBE40 #40BEA2
split-complementary
#6340BE #BEA240 #5CBE40
monochromatic
#332162 #4B3190 #6340BE #886DCE #AD9BDD

Accessibility & contrast

On white

6.98
#6340BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6340BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340BE
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340BE#FFFFFF#000000##FFFFFF
##6340BE1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#465F79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6340be;
/* rgb */ color: rgb(99, 64, 190);
/* oklch */ color: oklch(48.4% 0.187 290.5);
Tailwind
colors: {
  custom: {
    50: '#9777d2',
    500: '#6340be',
    950: '#000000',
  },
}
SCSS
$custom: #6340be;
$custom-light: #9777d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6340be",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 256.667,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48431,
    "c": 0.1869,
    "h": 290.5
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#6340BE
secondary
#BAC990
accent
#D94FB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6340BE

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

Preview Lab → · Contrast checker → · Palette generator →

#6340BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva