#340F50#340F50

#340F50 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.112 H 306.0°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#340F50
RGBrgb(52, 15, 80)
HSLhsl(274, 68%, 19%)
HSVhsv(274, 81%, 31%)
CMYKcmyk(35%, 81.3%, 0%, 68.6%)
CIE-LABlab(13.54, 31.31, -31.95)
CIE-LCHlch(13.54, 44.73, 314.42°)
OKLaboklab(26.87% 0.066 -0.0908)
OKLCHoklch(26.87% 0.112 306)
XYZxyz(3.0346, 1.6509, 7.7467)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F50 #2B500F
analogous
#130F50 #340F50 #500F4B
triadic
#340F50 #50340F #0F5034
tetradic
#340F50 #50130F #2B500F #0F4B50
square
#340F50 #50130F #2B500F #0F4B50
split-complementary
#340F50 #4B500F #0F5013
monochromatic
#11051A #12051C #340F50 #551984 #7722B7

Accessibility & contrast

On white

15.79
#340F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#340F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F50
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F50#FFFFFF#000000##FFFFFF
##340F501.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2F1F2E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #340f50;
/* rgb */ color: rgb(52, 15, 80);
/* oklch */ color: oklch(26.9% 0.112 306.0);
Tailwind
colors: {
  custom: {
    50: '#6f5282',
    500: '#340f50',
    950: '#000000',
  },
}
SCSS
$custom: #340f50;
$custom-light: #6f5282;
$custom-dark: #000000;
JSON
{
  "hex": "#340f50",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 274.154,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26867,
    "c": 0.11227,
    "h": 306
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#340F50
secondary
#578A31
accent
#EB3D88
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340F50

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

Preview Lab → · Contrast checker → · Palette generator →

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