#342189#342189

#342189 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.161 H 282.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#342189
RGBrgb(52, 33, 137)
HSLhsl(251, 61%, 33%)
HSVhsv(251, 76%, 54%)
CMYKcmyk(62%, 75.9%, 0%, 46.3%)
CIE-LABlab(22.39, 38.74, -54.67)
CIE-LCHlch(22.39, 67.00, 305.33°)
OKLaboklab(34.8% 0.0347 -0.1576)
OKLCHoklch(34.8% 0.161 282.4)
XYZxyz(6.4740, 3.6235, 24.0203)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342189 #768921
analogous
#214289 #342189 #682189
triadic
#342189 #893421 #218934
tetradic
#342189 #892142 #768921 #218968
square
#342189 #892142 #768921 #218968
split-complementary
#342189 #896821 #428921
monochromatic
#0F0926 #211558 #342189 #472DBA #6850D5

Accessibility & contrast

On white

12.18
#342189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342189
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342189#FFFFFF#000000##FFFFFF
##3421891.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342189;
/* rgb */ color: rgb(52, 33, 137);
/* oklch */ color: oklch(34.8% 0.161 282.4);
Tailwind
colors: {
  custom: {
    50: '#775fac',
    500: '#342189',
    950: '#000000',
  },
}
SCSS
$custom: #342189;
$custom-light: #775fac;
$custom-dark: #000000;
JSON
{
  "hex": "#342189",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 250.962,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34795,
    "c": 0.16136,
    "h": 282.4
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#342189
secondary
#A5B84E
accent
#E444C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342189

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

Preview Lab → · Contrast checker → · Palette generator →

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