#342A4E#342A4E

#342A4E is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.4% C 0.064 H 295.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#342A4E
RGBrgb(52, 42, 78)
HSLhsl(257, 30%, 24%)
HSVhsv(257, 46%, 31%)
CMYKcmyk(33.3%, 46.2%, 0%, 69.4%)
CIE-LABlab(19.79, 13.96, -20.58)
CIE-LCHlch(19.79, 24.87, 304.15°)
OKLaboklab(31.41% 0.0272 -0.0576)
OKLCHoklch(31.41% 0.064 295.3)
XYZxyz(3.6189, 2.9360, 7.5823)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A4E #444E2A
analogous
#2A324E #342A4E #462A4E
triadic
#342A4E #4E342A #2A4E34
tetradic
#342A4E #4E2A32 #444E2A #2A4E46
square
#342A4E #4E2A32 #444E2A #2A4E46
split-complementary
#342A4E #4E462A #324E2A
monochromatic
#0D0B14 #191526 #342A4E #4F3F76 #69559E

Accessibility & contrast

On white

13.23
#342A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#342A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A4E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A4E#FFFFFF#000000##FFFFFF
##342A4E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F304F
Deuteranopia (green-blind)
#212F4D
Tritanopia (blue-blind)
#2E3038
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342a4e;
/* rgb */ color: rgb(52, 42, 78);
/* oklch */ color: oklch(31.4% 0.064 295.3);
Tailwind
colors: {
  custom: {
    50: '#6d6380',
    500: '#342a4e',
    950: '#000000',
  },
}
SCSS
$custom: #342a4e;
$custom-light: #6d6380;
$custom-dark: #000000;
JSON
{
  "hex": "#342a4e",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 256.667,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31407,
    "c": 0.06375,
    "h": 295.3
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#342A4E
secondary
#748054
accent
#C662AA
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #342A4E

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

Preview Lab → · Contrast checker → · Palette generator →

#342A4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva