#342B4E#342B4E

#342B4E is a dark, moderate violet. Relative luminance 0.030; OKLCH L 31.6% C 0.062 H 294.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#342B4E
RGBrgb(52, 43, 78)
HSLhsl(255, 29%, 24%)
HSVhsv(255, 45%, 31%)
CMYKcmyk(33.3%, 44.9%, 0%, 69.4%)
CIE-LABlab(20.08, 13.27, -20.13)
CIE-LCHlch(20.08, 24.11, 303.39°)
OKLaboklab(31.63% 0.0256 -0.0563)
OKLCHoklch(31.63% 0.062 294.4)
XYZxyz(3.6549, 3.0078, 7.5943)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B4E #454E2B
analogous
#2B334E #342B4E #452B4E
triadic
#342B4E #4E342B #2B4E34
tetradic
#342B4E #4E2B33 #454E2B #2B4E45
square
#342B4E #4E2B33 #454E2B #2B4E45
split-complementary
#342B4E #4E452B #334E2B
monochromatic
#0D0B14 #1A1527 #342B4E #4E4175 #69569D

Accessibility & contrast

On white

13.11
#342B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#342B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B4E
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B4E#FFFFFF#000000##FFFFFF
##342B4E1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#22304D
Tritanopia (blue-blind)
#2E3138
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342b4e;
/* rgb */ color: rgb(52, 43, 78);
/* oklch */ color: oklch(31.6% 0.062 294.4);
Tailwind
colors: {
  custom: {
    50: '#6c6480',
    500: '#342b4e',
    950: '#000000',
  },
}
SCSS
$custom: #342b4e;
$custom-light: #6c6480;
$custom-dark: #000000;
JSON
{
  "hex": "#342b4e",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 255.429,
    "s": 28.926,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.06186,
    "h": 294.4
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#342B4E
secondary
#758055
accent
#C563AC
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #342B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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