#342090#342090

#342090 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.171 H 281.3°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#342090
RGBrgb(52, 32, 144)
HSLhsl(251, 64%, 35%)
HSVhsv(251, 78%, 56%)
CMYKcmyk(63.9%, 77.8%, 0%, 43.5%)
CIE-LABlab(22.92, 41.49, -58.15)
CIE-LCHlch(22.92, 71.43, 305.51°)
OKLaboklab(35.39% 0.0335 -0.1678)
OKLCHoklch(35.39% 0.171 281.3)
XYZxyz(6.9651, 3.7762, 26.7420)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342090 #7C9020
analogous
#204490 #342090 #6C2090
triadic
#342090 #903420 #209034
tetradic
#342090 #902044 #7C9020 #20906C
square
#342090 #902044 #7C9020 #20906C
split-complementary
#342090 #906C20 #449020
monochromatic
#100A2C #22155E #342090 #462BC2 #6A52D9

Accessibility & contrast

On white

11.96
#342090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342090
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342090#FFFFFF#000000##FFFFFF
##3420901.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342090;
/* rgb */ color: rgb(52, 32, 144);
/* oklch */ color: oklch(35.4% 0.171 281.3);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#342090',
    950: '#000000',
  },
}
SCSS
$custom: #342090;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#342090",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 250.714,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35387,
    "c": 0.17109,
    "h": 281.3
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#342090
secondary
#A9BC50
accent
#E741C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342090

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

Preview Lab → · Contrast checker → · Palette generator →

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