#342160#342160

#342160 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.0% C 0.107 H 293.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#342160
RGBrgb(52, 33, 96)
HSLhsl(258, 49%, 25%)
HSVhsv(258, 66%, 38%)
CMYKcmyk(45.8%, 65.6%, 0%, 62.4%)
CIE-LABlab(18.64, 25.64, -34.44)
CIE-LCHlch(18.64, 42.94, 306.67°)
OKLaboklab(30.95% 0.0417 -0.0983)
OKLCHoklch(30.95% 0.107 293)
XYZxyz(4.0708, 2.6622, 11.3634)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342160 #4D6021
analogous
#212E60 #342160 #532160
triadic
#342160 #603421 #216034
tetradic
#342160 #60212E #4D6021 #216053
square
#342160 #60212E #4D6021 #216053
split-complementary
#342160 #605321 #2E6021
monochromatic
#0C0817 #1B1132 #342160 #4D318E #6540BB

Accessibility & contrast

On white

13.70
#342160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#342160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342160
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342160#FFFFFF#000000##FFFFFF
##3421601.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#282F3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #342160;
/* rgb */ color: rgb(52, 33, 96);
/* oklch */ color: oklch(31.0% 0.107 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f5d8e',
    500: '#342160',
    950: '#000000',
  },
}
SCSS
$custom: #342160;
$custom-light: #6f5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#342160",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 258.095,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30951,
    "c": 0.10675,
    "h": 293
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#342160
secondary
#7D9449
accent
#D84FAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #342160

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

Preview Lab → · Contrast checker → · Palette generator →

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