#341062#341062

#341062 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.132 H 297.0°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#341062
RGBrgb(52, 16, 98)
HSLhsl(266, 72%, 22%)
HSVhsv(266, 84%, 38%)
CMYKcmyk(46.9%, 83.7%, 0%, 61.6%)
CIE-LABlab(15.39, 35.73, -41.05)
CIE-LCHlch(15.39, 54.42, 311.04°)
OKLaboklab(28.69% 0.0598 -0.1176)
OKLCHoklch(28.69% 0.132 297)
XYZxyz(3.8055, 1.9824, 11.7350)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341062 #3E6210
analogous
#101562 #341062 #5D1062
triadic
#341062 #623410 #106234
tetradic
#341062 #621015 #3E6210 #10625D
square
#341062 #621015 #3E6210 #10625D
split-complementary
#341062 #625D10 #156210
monochromatic
#0E041A #18072D #341062 #501997 #6C21CB

Accessibility & contrast

On white

15.04
#341062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341062
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341062#FFFFFF#000000##FFFFFF
##3410621.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#282739
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #341062;
/* rgb */ color: rgb(52, 16, 98);
/* oklch */ color: oklch(28.7% 0.132 297.0);
Tailwind
colors: {
  custom: {
    50: '#71538f',
    500: '#341062',
    950: '#000000',
  },
}
SCSS
$custom: #341062;
$custom-light: #71538f;
$custom-dark: #000000;
JSON
{
  "hex": "#341062",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 266.341,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28694,
    "c": 0.13194,
    "h": 297
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#341062
secondary
#6D9B33
accent
#EF399F
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341062

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

Preview Lab → · Contrast checker → · Palette generator →

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