#342255#342255

#342255 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.089 H 297.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#342255
RGBrgb(52, 34, 85)
HSLhsl(261, 43%, 23%)
HSVhsv(261, 60%, 33%)
CMYKcmyk(38.8%, 60%, 0%, 66.7%)
CIE-LABlab(18.05, 21.56, -28.05)
CIE-LCHlch(18.05, 35.38, 307.55°)
OKLaboklab(30.26% 0.0406 -0.0795)
OKLCHoklch(30.26% 0.089 297)
XYZxyz(3.6275, 2.5299, 8.8898)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342255 #435522
analogous
#222955 #342255 #4D2255
triadic
#342255 #553422 #225534
tetradic
#342255 #552229 #435522 #22554D
square
#342255 #552229 #435522 #22554D
split-complementary
#342255 #554D22 #295522
monochromatic
#0D0916 #191129 #342255 #4F3381 #6945AC

Accessibility & contrast

On white

13.94
#342255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342255
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342255#FFFFFF#000000##FFFFFF
##3422551.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C57
Deuteranopia (green-blind)
#112C54
Tritanopia (blue-blind)
#2C2C37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342255;
/* rgb */ color: rgb(52, 34, 85);
/* oklch */ color: oklch(30.3% 0.089 297.0);
Tailwind
colors: {
  custom: {
    50: '#6e5d85',
    500: '#342255',
    950: '#000000',
  },
}
SCSS
$custom: #342255;
$custom-light: #6e5d85;
$custom-dark: #000000;
JSON
{
  "hex": "#342255",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 261.176,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30258,
    "c": 0.08922,
    "h": 297
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#342255
secondary
#73894A
accent
#D355A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #342255

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

Preview Lab → · Contrast checker → · Palette generator →

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