#342A57#342A57

#342A57 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.0% C 0.078 H 291.6°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#342A57
RGBrgb(52, 42, 87)
HSLhsl(253, 35%, 25%)
HSVhsv(253, 52%, 34%)
CMYKcmyk(40.2%, 51.7%, 0%, 65.9%)
CIE-LABlab(20.34, 16.77, -25.74)
CIE-LCHlch(20.34, 30.72, 303.08°)
OKLaboklab(32% 0.0288 -0.0727)
OKLCHoklch(32% 0.078 291.6)
XYZxyz(3.9640, 3.0740, 9.3995)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A57 #4D572A
analogous
#2A3657 #342A57 #4A2A57
triadic
#342A57 #57342A #2A5734
tetradic
#342A57 #572A36 #4D572A #2A574A
square
#342A57 #572A36 #4D572A #2A574A
split-complementary
#342A57 #574A2A #36572A
monochromatic
#0C0A15 #1B162E #342A57 #4D3E80 #6552AA

Accessibility & contrast

On white

13.00
#342A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#342A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A57
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A57#FFFFFF#000000##FFFFFF
##342A571.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3259
Deuteranopia (green-blind)
#1B3056
Tritanopia (blue-blind)
#2B333C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342a57;
/* rgb */ color: rgb(52, 42, 87);
/* oklch */ color: oklch(32.0% 0.078 291.6);
Tailwind
colors: {
  custom: {
    50: '#6d6387',
    500: '#342a57',
    950: '#000000',
  },
}
SCSS
$custom: #342a57;
$custom-light: #6d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#342a57",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 253.333,
    "s": 34.884,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32003,
    "c": 0.07817,
    "h": 291.6
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#342A57
secondary
#7D8953
accent
#CB5DB2
background
#F6F5F8
surface
#ECEAEF
border
#C7C6CA
text
#07050B
muted
#7A797C

Preview Lab

Preview with #342A57

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

Preview Lab → · Contrast checker → · Palette generator →

#342A57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva