#342A5B#342A5B

#342A5B is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.3% C 0.084 H 290.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#342A5B
RGBrgb(52, 42, 91)
HSLhsl(252, 37%, 26%)
HSVhsv(252, 54%, 36%)
CMYKcmyk(42.9%, 53.8%, 0%, 64.3%)
CIE-LABlab(20.60, 18.05, -27.98)
CIE-LCHlch(20.60, 33.29, 302.83°)
OKLaboklab(32.29% 0.0292 -0.0792)
OKLCHoklch(32.29% 0.084 290.2)
XYZxyz(4.1320, 3.1412, 10.2841)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A5B #515B2A
analogous
#2A385B #342A5B #4C2A5B
triadic
#342A5B #5B342A #2A5B34
tetradic
#342A5B #5B2A38 #515B2A #2A5B4C
square
#342A5B #5B2A38 #515B2A #2A5B4C
split-complementary
#342A5B #5B4C2A #385B2A
monochromatic
#0C0A15 #1C1731 #342A5B #4C3D85 #6451AF

Accessibility & contrast

On white

12.90
#342A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#342A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A5B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A5B#FFFFFF#000000##FFFFFF
##342A5B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16335D
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#29343E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342a5b;
/* rgb */ color: rgb(52, 42, 91);
/* oklch */ color: oklch(32.3% 0.084 290.2);
Tailwind
colors: {
  custom: {
    50: '#6e638a',
    500: '#342a5b',
    950: '#000000',
  },
}
SCSS
$custom: #342a5b;
$custom-light: #6e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#342a5b",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 91
  },
  "hsl": {
    "h": 252.245,
    "s": 36.842,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32285,
    "c": 0.08447,
    "h": 290.2
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#342A5B
secondary
#828D53
accent
#CD5BB6
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#07050B
muted
#7A797C

Preview Lab

Preview with #342A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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