#342B50#342B50

#342B50 is a dark, moderate violet. Relative luminance 0.030; OKLCH L 31.8% C 0.065 H 293.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#342B50
RGBrgb(52, 43, 80)
HSLhsl(255, 30%, 24%)
HSVhsv(255, 46%, 31%)
CMYKcmyk(35%, 46.2%, 0%, 68.6%)
CIE-LABlab(20.19, 13.88, -21.29)
CIE-LCHlch(20.19, 25.42, 303.11°)
OKLaboklab(31.75% 0.026 -0.0597)
OKLCHoklch(31.75% 0.065 293.5)
XYZxyz(3.7277, 3.0369, 7.9777)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B50 #47502B
analogous
#2B3550 #342B50 #472B50
triadic
#342B50 #50342B #2B5034
tetradic
#342B50 #502B35 #47502B #2B5047
square
#342B50 #502B35 #47502B #2B5047
split-complementary
#342B50 #50472B #35502B
monochromatic
#0D0B14 #1A1628 #342B50 #4E4078 #6856A0

Accessibility & contrast

On white

13.06
#342B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B50
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B50#FFFFFF#000000##FFFFFF
##342B501.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203151
Deuteranopia (green-blind)
#21304F
Tritanopia (blue-blind)
#2E3239
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342b50;
/* rgb */ color: rgb(52, 43, 80);
/* oklch */ color: oklch(31.8% 0.065 293.5);
Tailwind
colors: {
  custom: {
    50: '#6d6481',
    500: '#342b50',
    950: '#000000',
  },
}
SCSS
$custom: #342b50;
$custom-light: #6d6481;
$custom-dark: #000000;
JSON
{
  "hex": "#342b50",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 80
  },
  "hsl": {
    "h": 254.595,
    "s": 30.081,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.06512,
    "h": 293.5
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#342B50
secondary
#778255
accent
#C661AE
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #342B50

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

Preview Lab → · Contrast checker → · Palette generator →

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