#342289#342289

#342289 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.160 H 282.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#342289
RGBrgb(52, 34, 137)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 54%)
CMYKcmyk(62%, 75.2%, 0%, 46.3%)
CIE-LABlab(22.58, 38.19, -54.34)
CIE-LCHlch(22.58, 66.41, 305.10°)
OKLaboklab(34.94% 0.0339 -0.1567)
OKLCHoklch(34.94% 0.16 282.2)
XYZxyz(6.5022, 3.6798, 24.0297)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342289 #778922
analogous
#224389 #342289 #672289
triadic
#342289 #893422 #228934
tetradic
#342289 #892243 #778922 #228967
square
#342289 #892243 #778922 #228967
split-complementary
#342289 #896722 #438922
monochromatic
#0F0A27 #211658 #342289 #472EBA #6851D4

Accessibility & contrast

On white

12.10
#342289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342289
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342289#FFFFFF#000000##FFFFFF
##3422891.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342289;
/* rgb */ color: rgb(52, 34, 137);
/* oklch */ color: oklch(34.9% 0.160 282.2);
Tailwind
colors: {
  custom: {
    50: '#775fac',
    500: '#342289',
    950: '#000000',
  },
}
SCSS
$custom: #342289;
$custom-light: #775fac;
$custom-dark: #000000;
JSON
{
  "hex": "#342289",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 250.485,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34935,
    "c": 0.16028,
    "h": 282.2
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#342289
secondary
#A5B84F
accent
#E344C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342289

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

Preview Lab → · Contrast checker → · Palette generator →

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