#342098#342098

#342098 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.181 H 280.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#342098
RGBrgb(52, 32, 152)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 60%)
CMYKcmyk(65.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.77, 43.98, -61.69)
CIE-LCHlch(23.77, 75.76, 305.48°)
OKLaboklab(36.24% 0.0314 -0.1781)
OKLCHoklch(36.24% 0.181 280)
XYZxyz(7.5984, 4.0295, 30.0770)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342098 #849820
analogous
#204898 #342098 #702098
triadic
#342098 #983420 #209834
tetradic
#342098 #982048 #849820 #209870
square
#342098 #982048 #849820 #209870
split-complementary
#342098 #987020 #489820
monochromatic
#110B33 #231565 #342098 #452BCB #6D57DC

Accessibility & contrast

On white

11.63
#342098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342098
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342098#FFFFFF#000000##FFFFFF
##3420981.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342098;
/* rgb */ color: rgb(52, 32, 152);
/* oklch */ color: oklch(36.2% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fb8',
    500: '#342098',
    950: '#000000',
  },
}
SCSS
$custom: #342098;
$custom-light: #7a5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#342098",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 250,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36237,
    "c": 0.18082,
    "h": 280
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342098

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

Preview Lab → · Contrast checker → · Palette generator →

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