#342479#342479

#342479 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.137 H 285.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#342479
RGBrgb(52, 36, 121)
HSLhsl(251, 54%, 31%)
HSVhsv(251, 70%, 47%)
CMYKcmyk(57%, 70.2%, 0%, 52.5%)
CIE-LABlab(21.48, 31.83, -46.05)
CIE-LCHlch(21.48, 55.98, 304.65°)
OKLaboklab(33.68% 0.0354 -0.1324)
OKLCHoklch(33.68% 0.137 285)
XYZxyz(5.4972, 3.3720, 18.4466)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342479 #697924
analogous
#243E79 #342479 #5E2479
triadic
#342479 #793424 #247934
tetradic
#342479 #79243E #697924 #24795E
square
#342479 #79243E #697924 #24795E
split-complementary
#342479 #795E24 #3E7924
monochromatic
#0B081B #20164A #342479 #4832A8 #654DCA

Accessibility & contrast

On white

12.54
#342479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#342479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342479
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342479#FFFFFF#000000##FFFFFF
##3424791.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#153A4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342479;
/* rgb */ color: rgb(52, 36, 121);
/* oklch */ color: oklch(33.7% 0.137 285.0);
Tailwind
colors: {
  custom: {
    50: '#7360a0',
    500: '#342479',
    950: '#000000',
  },
}
SCSS
$custom: #342479;
$custom-light: #7360a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342479",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 251.294,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33676,
    "c": 0.13703,
    "h": 285
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#342479
secondary
#9AAC4D
accent
#DE4AC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #342479

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

Preview Lab → · Contrast checker → · Palette generator →

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