#342249#342249

#342249 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.4% C 0.071 H 303.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#342249
RGBrgb(52, 34, 73)
HSLhsl(268, 36%, 21%)
HSVhsv(268, 53%, 29%)
CMYKcmyk(28.8%, 53.4%, 0%, 71.4%)
CIE-LABlab(17.25, 17.97, -21.19)
CIE-LCHlch(17.25, 27.78, 310.30°)
OKLaboklab(29.4% 0.0395 -0.0594)
OKLCHoklch(29.4% 0.071 303.6)
XYZxyz(3.1905, 2.3552, 6.5885)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342249 #374922
analogous
#222349 #342249 #472249
triadic
#342249 #493422 #224934
tetradic
#342249 #492223 #374922 #224947
square
#342249 #492223 #374922 #224947
split-complementary
#342249 #494722 #234922
monochromatic
#0F0A15 #160F1F #342249 #523573 #6F499D

Accessibility & contrast

On white

14.28
#342249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#342249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342249
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342249#FFFFFF#000000##FFFFFF
##3422491.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172A4A
Deuteranopia (green-blind)
#1B2A48
Tritanopia (blue-blind)
#302932
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342249;
/* rgb */ color: rgb(52, 34, 73);
/* oklch */ color: oklch(29.4% 0.071 303.6);
Tailwind
colors: {
  custom: {
    50: '#6d5d7c',
    500: '#342249',
    950: '#000000',
  },
}
SCSS
$custom: #342249;
$custom-light: #6d5d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#342249",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 73
  },
  "hsl": {
    "h": 267.692,
    "s": 36.449,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29403,
    "c": 0.07134,
    "h": 303.6
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#342249
secondary
#657D4A
accent
#CC5B98
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #342249

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

Preview Lab → · Contrast checker → · Palette generator →

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