#342A63#342A63

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

Color values

HEX#342A63
RGBrgb(52, 42, 99)
HSLhsl(251, 40%, 28%)
HSVhsv(251, 58%, 39%)
CMYKcmyk(47.5%, 57.6%, 0%, 61.2%)
CIE-LABlab(21.16, 20.66, -32.35)
CIE-LCHlch(21.16, 38.39, 302.56°)
OKLaboklab(32.88% 0.0298 -0.0921)
OKLCHoklch(32.88% 0.097 287.9)
XYZxyz(4.4956, 3.2867, 12.1995)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A63 #59632A
analogous
#2A3D63 #342A63 #502A63
triadic
#342A63 #63342A #2A6334
tetradic
#342A63 #632A3D #59632A #2A6350
square
#342A63 #632A3D #59632A #2A6350
split-complementary
#342A63 #63502A #3D632A
monochromatic
#0B0915 #1D1838 #342A63 #4B3C8E #6352B6

Accessibility & contrast

On white

12.67
#342A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A63
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A63#FFFFFF#000000##FFFFFF
##342A631.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3465
Deuteranopia (green-blind)
#0D3162
Tritanopia (blue-blind)
#263642
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342a63;
/* rgb */ color: rgb(52, 42, 99);
/* oklch */ color: oklch(32.9% 0.097 287.9);
Tailwind
colors: {
  custom: {
    50: '#6f6390',
    500: '#342a63',
    950: '#000000',
  },
}
SCSS
$custom: #342a63;
$custom-light: #6f6390;
$custom-dark: #000000;
JSON
{
  "hex": "#342a63",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 99
  },
  "hsl": {
    "h": 250.526,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32879,
    "c": 0.0968,
    "h": 287.9
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#342A63
secondary
#8A9553
accent
#D058BB
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #342A63

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

Preview Lab → · Contrast checker → · Palette generator →

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