#340A49#340A49

#340A49 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.111 H 311.2°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#340A49
RGBrgb(52, 10, 73)
HSLhsl(280, 76%, 16%)
HSVhsv(280, 86%, 29%)
CMYKcmyk(28.8%, 86.3%, 0%, 71.4%)
CIE-LABlab(12.14, 31.76, -29.37)
CIE-LCHlch(12.14, 43.26, 317.23°)
OKLaboklab(25.69% 0.0728 -0.0832)
OKLCHoklch(25.69% 0.111 311.2)
XYZxyz(2.7271, 1.4283, 6.4341)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A49 #1F490A
analogous
#150A49 #340A49 #490A3F
triadic
#340A49 #49340A #0A4934
tetradic
#340A49 #49150A #1F490A #0A3F49
square
#340A49 #49150A #1F490A #0A3F49
split-complementary
#340A49 #3F490A #0A4915
monochromatic
#13041B #13041B #340A49 #5A117F #8119B5

Accessibility & contrast

On white

16.33
#340A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340A49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A49
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A49#FFFFFF#000000##FFFFFF
##340A491.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#311929
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340a49;
/* rgb */ color: rgb(52, 10, 73);
/* oklch */ color: oklch(25.7% 0.111 311.2);
Tailwind
colors: {
  custom: {
    50: '#6f4f7c',
    500: '#340a49',
    950: '#000000',
  },
}
SCSS
$custom: #340a49;
$custom-light: #6f4f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#340a49",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 73
  },
  "hsl": {
    "h": 280,
    "s": 75.904,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25694,
    "c": 0.11058,
    "h": 311.2
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#340A49
secondary
#488629
accent
#F23574
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340A49

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

Preview Lab → · Contrast checker → · Palette generator →

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