#342147#342147

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

Color values

HEX#342147
RGBrgb(52, 33, 71)
HSLhsl(270, 37%, 20%)
HSVhsv(270, 54%, 28%)
CMYKcmyk(26.8%, 53.5%, 0%, 72.2%)
CIE-LABlab(16.86, 18.07, -20.44)
CIE-LCHlch(16.86, 27.28, 311.48°)
OKLaboklab(29.07% 0.0409 -0.0572)
OKLCHoklch(29.07% 0.07 305.5)
XYZxyz(3.0971, 2.2727, 6.2355)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342147 #344721
analogous
#212147 #342147 #472147
triadic
#342147 #473421 #214734
tetradic
#342147 #472121 #344721 #214747
square
#342147 #472121 #344721 #214747
split-complementary
#342147 #474721 #214721
monochromatic
#0F0A15 #150E1D #342147 #533471 #71489B

Accessibility & contrast

On white

14.44
#342147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342147
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342147#FFFFFF#000000##FFFFFF
##3421471.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172948
Deuteranopia (green-blind)
#1C2A46
Tritanopia (blue-blind)
#312830
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342147;
/* rgb */ color: rgb(52, 33, 71);
/* oklch */ color: oklch(29.1% 0.070 305.5);
Tailwind
colors: {
  custom: {
    50: '#6d5c7a',
    500: '#342147',
    950: '#000000',
  },
}
SCSS
$custom: #342147;
$custom-light: #6d5c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#342147",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 270,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29069,
    "c": 0.07031,
    "h": 305.5
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#342147
secondary
#627B49
accent
#CD5B94
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070409
muted
#7A797B

Preview Lab

Preview with #342147

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

Preview Lab → · Contrast checker → · Palette generator →

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