#342C50#342C50

#342C50 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.0% C 0.063 H 292.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#342C50
RGBrgb(52, 44, 80)
HSLhsl(253, 29%, 24%)
HSVhsv(253, 45%, 31%)
CMYKcmyk(35%, 45%, 0%, 68.6%)
CIE-LABlab(20.48, 13.19, -20.83)
CIE-LCHlch(20.48, 24.66, 302.34°)
OKLaboklab(31.97% 0.0244 -0.0584)
OKLCHoklch(31.97% 0.063 292.7)
XYZxyz(3.7645, 3.1105, 7.9899)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C50 #48502C
analogous
#2C3650 #342C50 #462C50
triadic
#342C50 #50342C #2C5034
tetradic
#342C50 #502C36 #48502C #2C5046
square
#342C50 #502C36 #48502C #2C5046
split-complementary
#342C50 #50462C #36502C
monochromatic
#0D0B14 #1A1629 #342C50 #4E4277 #67579F

Accessibility & contrast

On white

12.95
#342C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C50
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C50#FFFFFF#000000##FFFFFF
##342C501.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213251
Deuteranopia (green-blind)
#22314F
Tritanopia (blue-blind)
#2E333A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342c50;
/* rgb */ color: rgb(52, 44, 80);
/* oklch */ color: oklch(32.0% 0.063 292.7);
Tailwind
colors: {
  custom: {
    50: '#6d6581',
    500: '#342c50',
    950: '#000000',
  },
}
SCSS
$custom: #342c50;
$custom-light: #6d6581;
$custom-dark: #000000;
JSON
{
  "hex": "#342c50",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 80
  },
  "hsl": {
    "h": 253.333,
    "s": 29.032,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31972,
    "c": 0.06326,
    "h": 292.7
  },
  "luminance": 0.03111
}

Semantic roles & 50–950 ramp

primary
#342C50
secondary
#788256
accent
#C562AF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342C50

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

Preview Lab → · Contrast checker → · Palette generator →

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