#342156#342156

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

Color values

HEX#342156
RGBrgb(52, 33, 86)
HSLhsl(262, 45%, 23%)
HSVhsv(262, 62%, 34%)
CMYKcmyk(39.5%, 61.6%, 0%, 66.3%)
CIE-LABlab(17.87, 22.53, -29.02)
CIE-LCHlch(17.87, 36.73, 307.82°)
OKLaboklab(30.15% 0.042 -0.0823)
OKLCHoklch(30.15% 0.092 297.1)
XYZxyz(3.6393, 2.4896, 9.0911)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342156 #435621
analogous
#212856 #342156 #4E2156
triadic
#342156 #563421 #215634
tetradic
#342156 #562128 #435621 #21564E
square
#342156 #562128 #435621 #21564E
split-complementary
#342156 #564E21 #285621
monochromatic
#0D0816 #19102A #342156 #4F3282 #6943AE

Accessibility & contrast

On white

14.02
#342156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#342156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342156
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342156#FFFFFF#000000##FFFFFF
##3421561.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072C58
Deuteranopia (green-blind)
#0E2B55
Tritanopia (blue-blind)
#2C2C38
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342156;
/* rgb */ color: rgb(52, 33, 86);
/* oklch */ color: oklch(30.1% 0.092 297.1);
Tailwind
colors: {
  custom: {
    50: '#6e5d86',
    500: '#342156',
    950: '#000000',
  },
}
SCSS
$custom: #342156;
$custom-light: #6e5d86;
$custom-dark: #000000;
JSON
{
  "hex": "#342156",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 261.509,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30147,
    "c": 0.09241,
    "h": 297.1
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#342156
secondary
#738A49
accent
#D454A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #342156

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

Preview Lab → · Contrast checker → · Palette generator →

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