#342094#342094

#342094 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.176 H 280.6°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#342094
RGBrgb(52, 32, 148)
HSLhsl(250, 64%, 35%)
HSVhsv(250, 78%, 58%)
CMYKcmyk(64.9%, 78.4%, 0%, 42%)
CIE-LABlab(23.34, 42.74, -59.93)
CIE-LCHlch(23.34, 73.61, 305.49°)
OKLaboklab(35.81% 0.0325 -0.1729)
OKLCHoklch(35.81% 0.176 280.6)
XYZxyz(7.2763, 3.9006, 28.3807)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342094 #809420
analogous
#204694 #342094 #6E2094
triadic
#342094 #943420 #209434
tetradic
#342094 #942046 #809420 #20946E
square
#342094 #942046 #809420 #20946E
split-complementary
#342094 #946E20 #469420
monochromatic
#110A2F #221562 #342094 #462BC6 #6B54DA

Accessibility & contrast

On white

11.80
#342094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342094
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342094#FFFFFF#000000##FFFFFF
##3420941.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342094;
/* rgb */ color: rgb(52, 32, 148);
/* oklch */ color: oklch(35.8% 0.176 280.6);
Tailwind
colors: {
  custom: {
    50: '#795fb5',
    500: '#342094',
    950: '#000000',
  },
}
SCSS
$custom: #342094;
$custom-light: #795fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#342094",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 250.345,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3581,
    "c": 0.17597,
    "h": 280.6
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#342094
secondary
#ABBE52
accent
#E740CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342094

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

Preview Lab → · Contrast checker → · Palette generator →

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