#340F47#340F47

#340F47 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.102 H 311.6°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#340F47
RGBrgb(52, 15, 71)
HSLhsl(280, 65%, 17%)
HSVhsv(280, 79%, 28%)
CMYKcmyk(26.8%, 78.9%, 0%, 72.2%)
CIE-LABlab(12.78, 28.98, -26.96)
CIE-LCHlch(12.78, 39.58, 317.06°)
OKLaboklab(26.09% 0.0677 -0.0762)
OKLCHoklch(26.09% 0.102 311.6)
XYZxyz(2.7241, 1.5267, 6.1112)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F47 #22470F
analogous
#180F47 #340F47 #470F3E
triadic
#340F47 #47340F #0F4734
tetradic
#340F47 #47180F #22470F #0F3E47
square
#340F47 #47180F #22470F #0F3E47
split-complementary
#340F47 #3E470F #0F4718
monochromatic
#130519 #130519 #340F47 #591A7A #7E24AC

Accessibility & contrast

On white

16.09
#340F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#340F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F47
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F47#FFFFFF#000000##FFFFFF
##340F471.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#321B29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340f47;
/* rgb */ color: rgb(52, 15, 71);
/* oklch */ color: oklch(26.1% 0.102 311.6);
Tailwind
colors: {
  custom: {
    50: '#6e517b',
    500: '#340f47',
    950: '#000000',
  },
}
SCSS
$custom: #340f47;
$custom-light: #6e517b;
$custom-dark: #000000;
JSON
{
  "hex": "#340f47",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 279.643,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26089,
    "c": 0.10189,
    "h": 311.6
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#340F47
secondary
#4C8130
accent
#E84079
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340F47

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

Preview Lab → · Contrast checker → · Palette generator →

#340F47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva