#340730#340730

#340730 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.090 H 332.0°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#340730
RGBrgb(52, 7, 48)
HSLhsl(305, 76%, 12%)
HSVhsv(305, 87%, 20%)
CMYKcmyk(0%, 86.5%, 7.7%, 79.6%)
CIE-LABlab(9.76, 27.58, -15.31)
CIE-LCHlch(9.76, 31.54, 330.96°)
OKLaboklab(23.4% 0.0791 -0.0421)
OKLCHoklch(23.4% 0.09 332)
XYZxyz(2.0257, 1.0956, 2.9005)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340730 #07340B
analogous
#220734 #340730 #34071A
triadic
#340730 #303407 #073034
tetradic
#340730 #342207 #07340B #071A34
square
#340730 #342207 #07340B #071A34
split-complementary
#340730 #1A3407 #073422
monochromatic
#1B0419 #1B0419 #340730 #6A0E62 #A01694

Accessibility & contrast

On white

17.23
#340730 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340730 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340730
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340730#FFFFFF#000000##FFFFFF
##3407301.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051731
Deuteranopia (green-blind)
#151D2F
Tritanopia (blue-blind)
#370C1A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340730;
/* rgb */ color: rgb(52, 7, 48);
/* oklch */ color: oklch(23.4% 0.090 332.0);
Tailwind
colors: {
  custom: {
    50: '#6e4c68',
    500: '#340730',
    950: '#000000',
  },
}
SCSS
$custom: #340730;
$custom-light: #6e4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#340730",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 48
  },
  "hsl": {
    "h": 305.333,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23395,
    "c": 0.08959,
    "h": 332
  },
  "luminance": 0.01095
}

Semantic roles & 50–950 ramp

primary
#340730
secondary
#23742A
accent
#F34635
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340730

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

Preview Lab → · Contrast checker → · Palette generator →

#340730 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva