#342149#342149

#342149 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.073 H 304.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#342149
RGBrgb(52, 33, 73)
HSLhsl(269, 38%, 21%)
HSVhsv(269, 55%, 29%)
CMYKcmyk(28.8%, 54.8%, 0%, 71.4%)
CIE-LABlab(16.98, 18.65, -21.61)
CIE-LCHlch(16.98, 28.55, 310.79°)
OKLaboklab(29.2% 0.0412 -0.0606)
OKLCHoklch(29.2% 0.073 304.2)
XYZxyz(3.1624, 2.2988, 6.5792)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342149 #364921
analogous
#212249 #342149 #482149
triadic
#342149 #493421 #214934
tetradic
#342149 #492122 #364921 #214948
square
#342149 #492122 #364921 #214948
split-complementary
#342149 #494821 #224921
monochromatic
#0F0A15 #160E1F #342149 #523473 #70479D

Accessibility & contrast

On white

14.39
#342149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#342149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342149
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342149#FFFFFF#000000##FFFFFF
##3421491.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15294A
Deuteranopia (green-blind)
#1A2A48
Tritanopia (blue-blind)
#302831
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342149;
/* rgb */ color: rgb(52, 33, 73);
/* oklch */ color: oklch(29.2% 0.073 304.2);
Tailwind
colors: {
  custom: {
    50: '#6d5d7c',
    500: '#342149',
    950: '#000000',
  },
}
SCSS
$custom: #342149;
$custom-light: #6d5d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#342149",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 268.5,
    "s": 37.736,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.07328,
    "h": 304.2
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#342149
secondary
#647D49
accent
#CE5A97
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #342149

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

Preview Lab → · Contrast checker → · Palette generator →

#342149 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva