#340D50#340D50

#340D50 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.115 H 306.4°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#340D50
RGBrgb(52, 13, 80)
HSLhsl(275, 72%, 18%)
HSVhsv(275, 84%, 31%)
CMYKcmyk(35%, 83.7%, 0%, 68.6%)
CIE-LABlab(13.21, 32.23, -32.48)
CIE-LCHlch(13.21, 45.76, 314.79°)
OKLaboklab(26.64% 0.0681 -0.0924)
OKLCHoklch(26.64% 0.115 306.4)
XYZxyz(3.0077, 1.5971, 7.7377)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D50 #29500D
analogous
#120D50 #340D50 #500D4A
triadic
#340D50 #50340D #0D5034
tetradic
#340D50 #50120D #29500D #0D4A50
square
#340D50 #50120D #29500D #0D4A50
split-complementary
#340D50 #4A500D #0D5012
monochromatic
#11041A #12041B #340D50 #561685 #781EB9

Accessibility & contrast

On white

15.92
#340D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#340D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D50
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D50#FFFFFF#000000##FFFFFF
##340D501.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2F1E2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340d50;
/* rgb */ color: rgb(52, 13, 80);
/* oklch */ color: oklch(26.6% 0.115 306.4);
Tailwind
colors: {
  custom: {
    50: '#6f5182',
    500: '#340d50',
    950: '#000000',
  },
}
SCSS
$custom: #340d50;
$custom-light: #6f5182;
$custom-dark: #000000;
JSON
{
  "hex": "#340d50",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 274.925,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26639,
    "c": 0.11474,
    "h": 306.4
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#340D50
secondary
#558B2E
accent
#EF3985
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340D50

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

Preview Lab → · Contrast checker → · Palette generator →

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