#341C8C#341C8C

#341C8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.170 H 282.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#341C8C
RGBrgb(52, 28, 140)
HSLhsl(253, 67%, 33%)
HSVhsv(253, 80%, 55%)
CMYKcmyk(62.9%, 80%, 0%, 45.1%)
CIE-LABlab(21.78, 42.31, -57.54)
CIE-LCHlch(21.78, 71.42, 306.32°)
OKLaboklab(34.46% 0.0373 -0.1659)
OKLCHoklch(34.46% 0.17 282.7)
XYZxyz(6.5636, 3.4536, 25.1266)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8C #748C1C
analogous
#1C3C8C #341C8C #6C1C8C
triadic
#341C8C #8C341C #1C8C34
tetradic
#341C8C #8C1C3C #748C1C #1C8C6C
square
#341C8C #8C1C3C #748C1C #1C8C6C
split-complementary
#341C8C #8C6C1C #3C8C1C
monochromatic
#0E0826 #211259 #341C8C #4726BF #6748DA

Accessibility & contrast

On white

12.42
#341C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C8C
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8C#FFFFFF#000000##FFFFFF
##341C8C1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341c8c;
/* rgb */ color: rgb(52, 28, 140);
/* oklch */ color: oklch(34.5% 0.170 282.7);
Tailwind
colors: {
  custom: {
    50: '#785caf',
    500: '#341c8c',
    950: '#000000',
  },
}
SCSS
$custom: #341c8c;
$custom-light: #785caf;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8c",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 252.857,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34461,
    "c": 0.17008,
    "h": 282.7
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#341C8C
secondary
#A3BC48
accent
#EA3EC5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C8C

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

Preview Lab → · Contrast checker → · Palette generator →

#341C8C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva