#342B52#342B52

#342B52 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 31.9% C 0.068 H 292.7°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#342B52
RGBrgb(52, 43, 82)
HSLhsl(254, 31%, 25%)
HSVhsv(254, 48%, 32%)
CMYKcmyk(36.6%, 47.6%, 0%, 67.8%)
CIE-LABlab(20.31, 14.50, -22.44)
CIE-LCHlch(20.31, 26.72, 302.86°)
OKLaboklab(31.88% 0.0264 -0.0631)
OKLCHoklch(31.88% 0.068 292.7)
XYZxyz(3.8026, 3.0669, 8.3726)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B52 #49522B
analogous
#2B3652 #342B52 #482B52
triadic
#342B52 #52342B #2B5234
tetradic
#342B52 #522B36 #49522B #2B5248
square
#342B52 #522B36 #49522B #2B5248
split-complementary
#342B52 #52482B #36522B
monochromatic
#0D0B14 #1B162A #342B52 #4D407A #6755A2

Accessibility & contrast

On white

13.02
#342B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#342B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B52
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B52#FFFFFF#000000##FFFFFF
##342B521.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3153
Deuteranopia (green-blind)
#203051
Tritanopia (blue-blind)
#2D323A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342b52;
/* rgb */ color: rgb(52, 43, 82);
/* oklch */ color: oklch(31.9% 0.068 292.7);
Tailwind
colors: {
  custom: {
    50: '#6d6483',
    500: '#342b52',
    950: '#000000',
  },
}
SCSS
$custom: #342b52;
$custom-light: #6d6483;
$custom-dark: #000000;
JSON
{
  "hex": "#342b52",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 82
  },
  "hsl": {
    "h": 253.846,
    "s": 31.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31881,
    "c": 0.06836,
    "h": 292.7
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#342B52
secondary
#798455
accent
#C760B0
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342B52

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

Preview Lab → · Contrast checker → · Palette generator →

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