#342A66#342A66

#342A66 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.1% C 0.101 H 287.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#342A66
RGBrgb(52, 42, 102)
HSLhsl(250, 42%, 28%)
HSVhsv(250, 59%, 40%)
CMYKcmyk(49%, 58.8%, 0%, 60%)
CIE-LABlab(21.38, 21.66, -33.96)
CIE-LCHlch(21.38, 40.28, 302.52°)
OKLaboklab(33.11% 0.0299 -0.0968)
OKLCHoklch(33.11% 0.101 287.2)
XYZxyz(4.6417, 3.3451, 12.9689)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A66 #5C662A
analogous
#2A3E66 #342A66 #522A66
triadic
#342A66 #66342A #2A6634
tetradic
#342A66 #662A3E #5C662A #2A6652
square
#342A66 #662A3E #5C662A #2A6652
split-complementary
#342A66 #66522A #3E662A
monochromatic
#0B0916 #1E183B #342A66 #4A3C91 #6352B8

Accessibility & contrast

On white

12.58
#342A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#342A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A66
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A66#FFFFFF#000000##FFFFFF
##342A661.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083568
Deuteranopia (green-blind)
#073265
Tritanopia (blue-blind)
#243743
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342a66;
/* rgb */ color: rgb(52, 42, 102);
/* oklch */ color: oklch(33.1% 0.101 287.2);
Tailwind
colors: {
  custom: {
    50: '#706492',
    500: '#342a66',
    950: '#000000',
  },
}
SCSS
$custom: #342a66;
$custom-light: #706492;
$custom-dark: #000000;
JSON
{
  "hex": "#342a66",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 102
  },
  "hsl": {
    "h": 250,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.10133,
    "h": 287.2
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#342A66
secondary
#8D9854
accent
#D156BD
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#08050D
muted
#7B797E

Preview Lab

Preview with #342A66

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

Preview Lab → · Contrast checker → · Palette generator →

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