#342159#342159

#342159 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.097 H 295.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#342159
RGBrgb(52, 33, 89)
HSLhsl(260, 46%, 24%)
HSVhsv(260, 63%, 35%)
CMYKcmyk(41.6%, 62.9%, 0%, 65.1%)
CIE-LABlab(18.09, 23.45, -30.67)
CIE-LCHlch(18.09, 38.61, 307.41°)
OKLaboklab(30.38% 0.042 -0.0872)
OKLCHoklch(30.38% 0.097 295.7)
XYZxyz(3.7627, 2.5390, 9.7411)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342159 #465921
analogous
#212A59 #342159 #502159
triadic
#342159 #593421 #215934
tetradic
#342159 #59212A #465921 #215950
square
#342159 #59212A #465921 #215950
split-complementary
#342159 #595021 #2A5921
monochromatic
#0D0816 #1A102C #342159 #4E3286 #6842B2

Accessibility & contrast

On white

13.93
#342159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#342159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342159
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342159#FFFFFF#000000##FFFFFF
##3421591.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5B
Deuteranopia (green-blind)
#0A2B58
Tritanopia (blue-blind)
#2B2D39
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342159;
/* rgb */ color: rgb(52, 33, 89);
/* oklch */ color: oklch(30.4% 0.097 295.7);
Tailwind
colors: {
  custom: {
    50: '#6e5d88',
    500: '#342159',
    950: '#000000',
  },
}
SCSS
$custom: #342159;
$custom-light: #6e5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#342159",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 260.357,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30382,
    "c": 0.09676,
    "h": 295.7
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#342159
secondary
#768D49
accent
#D652A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #342159

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

Preview Lab → · Contrast checker → · Palette generator →

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