#342148#342148

#342148 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.072 H 304.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#342148
RGBrgb(52, 33, 72)
HSLhsl(269, 37%, 21%)
HSVhsv(269, 54%, 28%)
CMYKcmyk(27.8%, 54.2%, 0%, 71.8%)
CIE-LABlab(16.92, 18.36, -21.03)
CIE-LCHlch(16.92, 27.91, 311.12°)
OKLaboklab(29.14% 0.041 -0.0589)
OKLCHoklch(29.14% 0.072 304.8)
XYZxyz(3.1295, 2.2857, 6.4059)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342148 #354821
analogous
#212148 #342148 #472148
triadic
#342148 #483421 #214834
tetradic
#342148 #482121 #354821 #214847
square
#342148 #482121 #354821 #214847
split-complementary
#342148 #484721 #214821
monochromatic
#0F0A15 #160E1E #342148 #523472 #71479C

Accessibility & contrast

On white

14.41
#342148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342148
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342148#FFFFFF#000000##FFFFFF
##3421481.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162949
Deuteranopia (green-blind)
#1B2A47
Tritanopia (blue-blind)
#312831
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342148;
/* rgb */ color: rgb(52, 33, 72);
/* oklch */ color: oklch(29.1% 0.072 304.8);
Tailwind
colors: {
  custom: {
    50: '#6d5d7b',
    500: '#342148',
    950: '#000000',
  },
}
SCSS
$custom: #342148;
$custom-light: #6d5d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#342148",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 269.231,
    "s": 37.143,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29136,
    "c": 0.07179,
    "h": 304.8
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#342148
secondary
#637C49
accent
#CD5B95
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #342148

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

Preview Lab → · Contrast checker → · Palette generator →

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