#342276#342276

#342276 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.136 H 286.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#342276
RGBrgb(52, 34, 118)
HSLhsl(253, 55%, 30%)
HSVhsv(253, 71%, 46%)
CMYKcmyk(55.9%, 71.2%, 0%, 53.7%)
CIE-LABlab(20.76, 32.07, -45.31)
CIE-LCHlch(20.76, 55.51, 305.29°)
OKLaboklab(33.08% 0.0378 -0.1302)
OKLCHoklch(33.08% 0.136 286.2)
XYZxyz(5.2572, 3.1818, 17.4732)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342276 #647622
analogous
#223A76 #342276 #5E2276
triadic
#342276 #763422 #227634
tetradic
#342276 #76223A #647622 #22765E
square
#342276 #76223A #647622 #22765E
split-complementary
#342276 #765E22 #3A7622
monochromatic
#0A0718 #1F1446 #342276 #4930A6 #6448CA

Accessibility & contrast

On white

12.83
#342276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#342276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342276
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342276#FFFFFF#000000##FFFFFF
##3422761.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#193849
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342276;
/* rgb */ color: rgb(52, 34, 118);
/* oklch */ color: oklch(33.1% 0.136 286.2);
Tailwind
colors: {
  custom: {
    50: '#735e9e',
    500: '#342276',
    950: '#000000',
  },
}
SCSS
$custom: #342276;
$custom-light: #735e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#342276",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 252.857,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33076,
    "c": 0.13558,
    "h": 286.2
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#342276
secondary
#95A94B
accent
#DF49BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #342276

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

Preview Lab → · Contrast checker → · Palette generator →

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