#342B51#342B51

#342B51 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 31.8% C 0.067 H 293.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#342B51
RGBrgb(52, 43, 81)
HSLhsl(254, 31%, 24%)
HSVhsv(254, 47%, 32%)
CMYKcmyk(35.8%, 46.9%, 0%, 68.2%)
CIE-LABlab(20.25, 14.19, -21.87)
CIE-LCHlch(20.25, 26.07, 302.98°)
OKLaboklab(31.82% 0.0262 -0.0614)
OKLCHoklch(31.82% 0.067 293.1)
XYZxyz(3.7649, 3.0518, 8.1737)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B51 #48512B
analogous
#2B3551 #342B51 #472B51
triadic
#342B51 #51342B #2B5134
tetradic
#342B51 #512B35 #48512B #2B5147
square
#342B51 #512B35 #48512B #2B5147
split-complementary
#342B51 #51472B #35512B
monochromatic
#0D0B14 #1A1629 #342B51 #4E4079 #6755A1

Accessibility & contrast

On white

13.04
#342B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B51
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B51#FFFFFF#000000##FFFFFF
##342B511.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342b51;
/* rgb */ color: rgb(52, 43, 81);
/* oklch */ color: oklch(31.8% 0.067 293.1);
Tailwind
colors: {
  custom: {
    50: '#6d6482',
    500: '#342b51',
    950: '#000000',
  },
}
SCSS
$custom: #342b51;
$custom-light: #6d6482;
$custom-dark: #000000;
JSON
{
  "hex": "#342b51",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 81
  },
  "hsl": {
    "h": 254.211,
    "s": 30.645,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31816,
    "c": 0.06675,
    "h": 293.1
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#342B51
secondary
#788355
accent
#C761AF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342B51

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

Preview Lab → · Contrast checker → · Palette generator →

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