#342A64#342A64

#342A64 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.0% C 0.098 H 287.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#342A64
RGBrgb(52, 42, 100)
HSLhsl(250, 41%, 28%)
HSVhsv(250, 58%, 39%)
CMYKcmyk(48%, 58%, 0%, 60.8%)
CIE-LABlab(21.23, 20.99, -32.89)
CIE-LCHlch(21.23, 39.02, 302.55°)
OKLaboklab(32.96% 0.0299 -0.0937)
OKLCHoklch(32.96% 0.098 287.7)
XYZxyz(4.5437, 3.3059, 12.4528)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A64 #5A642A
analogous
#2A3D64 #342A64 #512A64
triadic
#342A64 #64342A #2A6434
tetradic
#342A64 #642A3D #5A642A #2A6451
square
#342A64 #642A3D #5A642A #2A6451
split-complementary
#342A64 #64512A #3D642A
monochromatic
#0B0916 #1E1839 #342A64 #4A3C8F #6352B6

Accessibility & contrast

On white

12.64
#342A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#342A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A64
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A64#FFFFFF#000000##FFFFFF
##342A641.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3466
Deuteranopia (green-blind)
#0B3163
Tritanopia (blue-blind)
#253742
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342a64;
/* rgb */ color: rgb(52, 42, 100);
/* oklch */ color: oklch(33.0% 0.098 287.7);
Tailwind
colors: {
  custom: {
    50: '#6f6490',
    500: '#342a64',
    950: '#000000',
  },
}
SCSS
$custom: #342a64;
$custom-light: #6f6490;
$custom-dark: #000000;
JSON
{
  "hex": "#342a64",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 100
  },
  "hsl": {
    "h": 250.345,
    "s": 40.845,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32956,
    "c": 0.09832,
    "h": 287.7
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#342A64
secondary
#8B9653
accent
#D157BC
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #342A64

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

Preview Lab → · Contrast checker → · Palette generator →

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