#342097#342097

#342097 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.180 H 280.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#342097
RGBrgb(52, 32, 151)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 59%)
CMYKcmyk(65.6%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.66, 43.67, -61.25)
CIE-LCHlch(23.66, 75.22, 305.49°)
OKLaboklab(36.13% 0.0316 -0.1768)
OKLCHoklch(36.13% 0.18 280.1)
XYZxyz(7.5168, 3.9969, 29.6475)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342097 #839720
analogous
#204797 #342097 #6F2097
triadic
#342097 #973420 #209734
tetradic
#342097 #972047 #839720 #20976F
square
#342097 #972047 #839720 #20976F
split-complementary
#342097 #976F20 #479720
monochromatic
#110B32 #231564 #342097 #452BC9 #6D56DB

Accessibility & contrast

On white

11.67
#342097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342097
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342097#FFFFFF#000000##FFFFFF
##3420971.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342097;
/* rgb */ color: rgb(52, 32, 151);
/* oklch */ color: oklch(36.1% 0.180 280.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fb7',
    500: '#342097',
    950: '#000000',
  },
}
SCSS
$custom: #342097;
$custom-light: #7a5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#342097",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 250.084,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3613,
    "c": 0.17961,
    "h": 280.1
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#342097
secondary
#ADBF54
accent
#E840CC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342097

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

Preview Lab → · Contrast checker → · Palette generator →

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