#342B60#342B60

#342B60 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 32.9% C 0.091 H 288.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#342B60
RGBrgb(52, 43, 96)
HSLhsl(250, 38%, 27%)
HSVhsv(250, 55%, 38%)
CMYKcmyk(45.8%, 55.2%, 0%, 62.4%)
CIE-LABlab(21.22, 18.99, -30.29)
CIE-LCHlch(21.22, 35.75, 302.09°)
OKLaboklab(32.85% 0.0283 -0.086)
OKLCHoklch(32.85% 0.091 288.2)
XYZxyz(4.3908, 3.3022, 11.4701)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B60 #57602B
analogous
#2B3D60 #342B60 #4F2B60
triadic
#342B60 #60342B #2B6034
tetradic
#342B60 #602B3D #57602B #2B604F
square
#342B60 #602B3D #57602B #2B604F
split-complementary
#342B60 #604F2B #3D602B
monochromatic
#0B0915 #1D1836 #342B60 #4B3E8A #6353B2

Accessibility & contrast

On white

12.65
#342B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B60
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B60#FFFFFF#000000##FFFFFF
##342B601.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133462
Deuteranopia (green-blind)
#13325F
Tritanopia (blue-blind)
#273641
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342b60;
/* rgb */ color: rgb(52, 43, 96);
/* oklch */ color: oklch(32.9% 0.091 288.2);
Tailwind
colors: {
  custom: {
    50: '#6f648d',
    500: '#342b60',
    950: '#000000',
  },
}
SCSS
$custom: #342b60;
$custom-light: #6f648d;
$custom-dark: #000000;
JSON
{
  "hex": "#342b60",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 96
  },
  "hsl": {
    "h": 250.189,
    "s": 38.129,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32854,
    "c": 0.09055,
    "h": 288.2
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#342B60
secondary
#889255
accent
#CE5ABA
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050C
muted
#7A7A7D

Preview Lab

Preview with #342B60

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

Preview Lab → · Contrast checker → · Palette generator →

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