#342155#342155

#342155 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.091 H 297.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#342155
RGBrgb(52, 33, 85)
HSLhsl(262, 44%, 23%)
HSVhsv(262, 61%, 33%)
CMYKcmyk(38.8%, 61.2%, 0%, 66.7%)
CIE-LABlab(17.80, 22.22, -28.46)
CIE-LCHlch(17.80, 36.11, 307.98°)
OKLaboklab(30.07% 0.042 -0.0807)
OKLCHoklch(30.07% 0.091 297.5)
XYZxyz(3.5993, 2.4736, 8.8804)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342155 #425521
analogous
#212855 #342155 #4E2155
triadic
#342155 #553421 #215534
tetradic
#342155 #552128 #425521 #21554E
square
#342155 #552128 #425521 #21554E
split-complementary
#342155 #554E21 #285521
monochromatic
#0D0916 #191029 #342155 #4F3281 #6A43AD

Accessibility & contrast

On white

14.05
#342155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#342155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342155
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342155#FFFFFF#000000##FFFFFF
##3421551.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C57
Deuteranopia (green-blind)
#102B54
Tritanopia (blue-blind)
#2C2C37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342155;
/* rgb */ color: rgb(52, 33, 85);
/* oklch */ color: oklch(30.1% 0.091 297.5);
Tailwind
colors: {
  custom: {
    50: '#6e5d85',
    500: '#342155',
    950: '#000000',
  },
}
SCSS
$custom: #342155;
$custom-light: #6e5d85;
$custom-dark: #000000;
JSON
{
  "hex": "#342155",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 261.923,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3007,
    "c": 0.09096,
    "h": 297.5
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#342155
secondary
#728949
accent
#D454A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #342155

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

Preview Lab → · Contrast checker → · Palette generator →

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