#342092#342092

#342092 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.174 H 281.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#342092
RGBrgb(52, 32, 146)
HSLhsl(251, 64%, 35%)
HSVhsv(251, 78%, 57%)
CMYKcmyk(64.4%, 78.1%, 0%, 42.7%)
CIE-LABlab(23.13, 42.11, -59.04)
CIE-LCHlch(23.13, 72.52, 305.50°)
OKLaboklab(35.6% 0.033 -0.1704)
OKLCHoklch(35.6% 0.174 281)
XYZxyz(7.1194, 3.8379, 27.5542)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342092 #7E9220
analogous
#204592 #342092 #6D2092
triadic
#342092 #923420 #209234
tetradic
#342092 #922045 #7E9220 #20926D
square
#342092 #922045 #7E9220 #20926D
split-complementary
#342092 #926D20 #459220
monochromatic
#100A2E #221560 #342092 #462BC4 #6B53D9

Accessibility & contrast

On white

11.88
#342092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342092
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342092#FFFFFF#000000##FFFFFF
##3420921.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342092;
/* rgb */ color: rgb(52, 32, 146);
/* oklch */ color: oklch(35.6% 0.174 281.0);
Tailwind
colors: {
  custom: {
    50: '#795fb3',
    500: '#342092',
    950: '#000000',
  },
}
SCSS
$custom: #342092;
$custom-light: #795fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#342092",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 146
  },
  "hsl": {
    "h": 250.526,
    "s": 64.045,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.17354,
    "h": 281
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#342092
secondary
#AABD51
accent
#E741CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342092

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

Preview Lab → · Contrast checker → · Palette generator →

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