#342152#342152

#342152 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.087 H 299.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#342152
RGBrgb(52, 33, 82)
HSLhsl(263, 43%, 23%)
HSVhsv(263, 60%, 32%)
CMYKcmyk(36.6%, 59.8%, 0%, 67.8%)
CIE-LABlab(17.58, 21.31, -26.78)
CIE-LCHlch(17.58, 34.22, 308.51°)
OKLaboklab(29.84% 0.0419 -0.0757)
OKLCHoklch(29.84% 0.087 299)
XYZxyz(3.4827, 2.4269, 8.2660)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342152 #3F5221
analogous
#212752 #342152 #4C2152
triadic
#342152 #523421 #215234
tetradic
#342152 #522127 #3F5221 #21524C
square
#342152 #522127 #3F5221 #21524C
split-complementary
#342152 #524C21 #275221
monochromatic
#0E0916 #180F26 #342152 #50337E #6B44A9

Accessibility & contrast

On white

14.14
#342152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#342152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342152
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342152#FFFFFF#000000##FFFFFF
##3421521.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#2E2B36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #342152;
/* rgb */ color: rgb(52, 33, 82);
/* oklch */ color: oklch(29.8% 0.087 299.0);
Tailwind
colors: {
  custom: {
    50: '#6e5d83',
    500: '#342152',
    950: '#000000',
  },
}
SCSS
$custom: #342152;
$custom-light: #6e5d83;
$custom-dark: #000000;
JSON
{
  "hex": "#342152",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 263.265,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29844,
    "c": 0.08657,
    "h": 299
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#342152
secondary
#6E8649
accent
#D255A2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #342152

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

Preview Lab → · Contrast checker → · Palette generator →

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