#342644#342644

#342644 is a dark, muted violet. Relative luminance 0.025; OKLCH L 29.9% C 0.056 H 304.7°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#342644
RGBrgb(52, 38, 68)
HSLhsl(268, 28%, 21%)
HSVhsv(268, 44%, 27%)
CMYKcmyk(23.5%, 44.1%, 0%, 73.3%)
CIE-LABlab(18.07, 13.79, -16.47)
CIE-LCHlch(18.07, 21.48, 309.95°)
OKLaboklab(29.92% 0.0317 -0.0457)
OKLCHoklch(29.92% 0.056 304.7)
XYZxyz(3.1525, 2.5337, 5.7907)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342644 #364426
analogous
#262744 #342644 #432644
triadic
#342644 #443426 #264434
tetradic
#342644 #442627 #364426 #264443
square
#342644 #442627 #364426 #264443
split-complementary
#342644 #444326 #274426
monochromatic
#0F0B14 #16101D #342644 #523C6B #705293

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342644#FFFFFF#000000##FFFFFF
##3426441.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)
#1F2C45
Deuteranopia (green-blind)
#222C43
Tritanopia (blue-blind)
#312B31
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342644;
/* rgb */ color: rgb(52, 38, 68);
/* oklch */ color: oklch(29.9% 0.056 304.7);
Tailwind
colors: {
  custom: {
    50: '#6c6078',
    500: '#342644',
    950: '#000000',
  },
}
SCSS
$custom: #342644;
$custom-light: #6c6078;
$custom-dark: #000000;
JSON
{
  "hex": "#342644",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 68
  },
  "hsl": {
    "h": 268,
    "s": 28.302,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29923,
    "c": 0.05565,
    "h": 304.7
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#342644
secondary
#64764F
accent
#C56397
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070509
muted
#7A797B

Preview Lab

Preview with #342644

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

Preview Lab → · Contrast checker → · Palette generator →

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