#342D53#342D53

#342D53 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.4% C 0.066 H 290.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#342D53
RGBrgb(52, 45, 83)
HSLhsl(251, 30%, 25%)
HSVhsv(251, 46%, 33%)
CMYKcmyk(37.3%, 45.8%, 0%, 67.5%)
CIE-LABlab(20.95, 13.43, -22.11)
CIE-LCHlch(20.95, 25.87, 301.28°)
OKLaboklab(32.38% 0.0234 -0.0621)
OKLCHoklch(32.38% 0.066 290.7)
XYZxyz(3.9155, 3.2313, 8.5993)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D53 #4C532D
analogous
#2D3953 #342D53 #472D53
triadic
#342D53 #53342D #2D5334
tetradic
#342D53 #532D39 #4C532D #2D5347
square
#342D53 #532D39 #4C532D #2D5347
split-complementary
#342D53 #53472D #39532D
monochromatic
#0C0B14 #1B172B #342D53 #4D437B #6658A2

Accessibility & contrast

On white

12.76
#342D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#342D53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D53
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D53#FFFFFF#000000##FFFFFF
##342D531.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213354
Deuteranopia (green-blind)
#213252
Tritanopia (blue-blind)
#2C343C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342d53;
/* rgb */ color: rgb(52, 45, 83);
/* oklch */ color: oklch(32.4% 0.066 290.7);
Tailwind
colors: {
  custom: {
    50: '#6d6683',
    500: '#342d53',
    950: '#000000',
  },
}
SCSS
$custom: #342d53;
$custom-light: #6d6683;
$custom-dark: #000000;
JSON
{
  "hex": "#342d53",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 83
  },
  "hsl": {
    "h": 251.053,
    "s": 29.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32383,
    "c": 0.06635,
    "h": 290.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#342D53
secondary
#7C8557
accent
#C662B4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342D53

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

Preview Lab → · Contrast checker → · Palette generator →

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