#341689#341689

#341689 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.172 H 284.1°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#341689
RGBrgb(52, 22, 137)
HSLhsl(256, 72%, 31%)
HSVhsv(256, 84%, 54%)
CMYKcmyk(62%, 83.9%, 0%, 46.3%)
CIE-LABlab(20.48, 44.23, -57.81)
CIE-LCHlch(20.48, 72.79, 307.42°)
OKLaboklab(33.46% 0.0418 -0.1667)
OKLCHoklch(33.46% 0.172 284.1)
XYZxyz(6.2171, 3.1096, 23.9347)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341689 #6B8916
analogous
#163189 #341689 #6D1689
triadic
#341689 #893416 #168934
tetradic
#341689 #891631 #6B8916 #16896D
square
#341689 #891631 #6B8916 #16896D
split-complementary
#341689 #896D16 #318916
monochromatic
#0C0520 #200E54 #341689 #481EBE #653ADF

Accessibility & contrast

On white

12.95
#341689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341689
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341689#FFFFFF#000000##FFFFFF
##3416891.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341689;
/* rgb */ color: rgb(52, 22, 137);
/* oklch */ color: oklch(33.5% 0.172 284.1);
Tailwind
colors: {
  custom: {
    50: '#7859ad',
    500: '#341689',
    950: '#000000',
  },
}
SCSS
$custom: #341689;
$custom-light: #7859ad;
$custom-dark: #000000;
JSON
{
  "hex": "#341689",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 255.652,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33464,
    "c": 0.17182,
    "h": 284.1
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#341689
secondary
#9CBD3E
accent
#EF39BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341689

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

Preview Lab → · Contrast checker → · Palette generator →

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