#340741#340741

#340741 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.106 H 317.2°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#340741
RGBrgb(52, 7, 65)
HSLhsl(287, 81%, 14%)
HSVhsv(287, 89%, 25%)
CMYKcmyk(20%, 89.2%, 0%, 74.5%)
CIE-LABlab(11.02, 31.16, -25.58)
CIE-LCHlch(11.02, 40.31, 320.61°)
OKLaboklab(24.69% 0.0777 -0.0721)
OKLCHoklch(24.69% 0.106 317.2)
XYZxyz(2.4461, 1.2638, 5.1151)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340741 #144107
analogous
#170741 #340741 #410731
triadic
#340741 #413407 #074134
tetradic
#340741 #411707 #144107 #073141
square
#340741 #411707 #144107 #073141
split-complementary
#340741 #314107 #074117
monochromatic
#16031C #16031C #340741 #600D78 #8C13B0

Accessibility & contrast

On white

16.76
#340741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340741
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340741#FFFFFF#000000##FFFFFF
##3407411.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#331424
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340741;
/* rgb */ color: rgb(52, 7, 65);
/* oklch */ color: oklch(24.7% 0.106 317.2);
Tailwind
colors: {
  custom: {
    50: '#6e4d76',
    500: '#340741',
    950: '#000000',
  },
}
SCSS
$custom: #340741;
$custom-light: #6e4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#340741",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 286.552,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24689,
    "c": 0.106,
    "h": 317.2
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#340741
secondary
#388024
accent
#F7315D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340741

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

Preview Lab → · Contrast checker → · Palette generator →

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