#342279#342279

#342279 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.140 H 285.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#342279
RGBrgb(52, 34, 121)
HSLhsl(252, 56%, 30%)
HSVhsv(252, 72%, 47%)
CMYKcmyk(57%, 71.9%, 0%, 52.5%)
CIE-LABlab(21.03, 33.04, -46.77)
CIE-LCHlch(21.03, 57.26, 305.23°)
OKLaboklab(33.36% 0.0373 -0.1345)
OKLCHoklch(33.36% 0.14 285.5)
XYZxyz(5.4384, 3.2543, 18.4270)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342279 #677922
analogous
#223B79 #342279 #5F2279
triadic
#342279 #793422 #227934
tetradic
#342279 #79223B #677922 #22795F
square
#342279 #79223B #677922 #22795F
split-complementary
#342279 #795F22 #3B7922
monochromatic
#0B0719 #1F1549 #342279 #492FA9 #6449CC

Accessibility & contrast

On white

12.72
#342279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#342279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342279
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342279#FFFFFF#000000##FFFFFF
##3422791.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#15394A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342279;
/* rgb */ color: rgb(52, 34, 121);
/* oklch */ color: oklch(33.4% 0.140 285.5);
Tailwind
colors: {
  custom: {
    50: '#735fa1',
    500: '#342279',
    950: '#000000',
  },
}
SCSS
$custom: #342279;
$custom-light: #735fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#342279",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 252.414,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3336,
    "c": 0.13957,
    "h": 285.5
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#342279
secondary
#98AC4B
accent
#DF48C0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #342279

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

Preview Lab → · Contrast checker → · Palette generator →

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