#342B53#342B53

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

Color values

HEX#342B53
RGBrgb(52, 43, 83)
HSLhsl(254, 32%, 25%)
HSVhsv(254, 48%, 33%)
CMYKcmyk(37.3%, 48.2%, 0%, 67.5%)
CIE-LABlab(20.37, 14.81, -23.02)
CIE-LCHlch(20.37, 27.37, 302.76°)
OKLaboklab(31.95% 0.0266 -0.0647)
OKLCHoklch(31.95% 0.07 292.3)
XYZxyz(3.8410, 3.0823, 8.5745)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B53 #4A532B
analogous
#2B3653 #342B53 #482B53
triadic
#342B53 #53342B #2B5334
tetradic
#342B53 #532B36 #4A532B #2B5348
square
#342B53 #532B36 #4A532B #2B5348
split-complementary
#342B53 #53482B #36532B
monochromatic
#0D0A14 #1B162B #342B53 #4D407B #6755A4

Accessibility & contrast

On white

12.99
#342B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#342B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B53
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B53#FFFFFF#000000##FFFFFF
##342B531.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3254
Deuteranopia (green-blind)
#1F3052
Tritanopia (blue-blind)
#2D333B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342b53;
/* rgb */ color: rgb(52, 43, 83);
/* oklch */ color: oklch(31.9% 0.070 292.3);
Tailwind
colors: {
  custom: {
    50: '#6d6483',
    500: '#342b53',
    950: '#000000',
  },
}
SCSS
$custom: #342b53;
$custom-light: #6d6483;
$custom-dark: #000000;
JSON
{
  "hex": "#342b53",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 83
  },
  "hsl": {
    "h": 253.5,
    "s": 31.746,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31946,
    "c": 0.06998,
    "h": 292.3
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#342B53
secondary
#7A8555
accent
#C860B1
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342B53

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

Preview Lab → · Contrast checker → · Palette generator →

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