#342145#342145

#342145 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.067 H 307.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#342145
RGBrgb(52, 33, 69)
HSLhsl(272, 35%, 20%)
HSVhsv(272, 52%, 27%)
CMYKcmyk(24.6%, 52.2%, 0%, 72.9%)
CIE-LABlab(16.74, 17.51, -19.25)
CIE-LCHlch(16.74, 26.02, 312.28°)
OKLaboklab(28.94% 0.0406 -0.0538)
OKLCHoklch(28.94% 0.067 307)
XYZxyz(3.0340, 2.2475, 5.9030)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342145 #324521
analogous
#222145 #342145 #452144
triadic
#342145 #453421 #214534
tetradic
#342145 #452221 #324521 #214445
square
#342145 #452221 #324521 #214445
split-complementary
#342145 #444521 #214522
monochromatic
#100A15 #150D1C #342145 #53356E #724998

Accessibility & contrast

On white

14.49
#342145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#342145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342145
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342145#FFFFFF#000000##FFFFFF
##3421451.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182946
Deuteranopia (green-blind)
#1D2A44
Tritanopia (blue-blind)
#32272F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #342145;
/* rgb */ color: rgb(52, 33, 69);
/* oklch */ color: oklch(28.9% 0.067 307.0);
Tailwind
colors: {
  custom: {
    50: '#6c5c79',
    500: '#342145',
    950: '#000000',
  },
}
SCSS
$custom: #342145;
$custom-light: #6c5c79;
$custom-dark: #000000;
JSON
{
  "hex": "#342145",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 271.667,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.28938,
    "c": 0.06734,
    "h": 307
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#342145
secondary
#607949
accent
#CB5C91
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #342145

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

Preview Lab → · Contrast checker → · Palette generator →

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