#341C8E#341C8E

#341C8E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.172 H 282.3°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#341C8E
RGBrgb(52, 28, 142)
HSLhsl(253, 67%, 33%)
HSVhsv(253, 80%, 56%)
CMYKcmyk(63.4%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.99, 42.92, -58.43)
CIE-LCHlch(21.99, 72.50, 306.29°)
OKLaboklab(34.68% 0.0367 -0.1685)
OKLCHoklch(34.68% 0.172 282.3)
XYZxyz(6.7124, 3.5131, 25.9103)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8E #768E1C
analogous
#1C3D8E #341C8E #6D1C8E
triadic
#341C8E #8E341C #1C8E34
tetradic
#341C8E #8E1C3D #768E1C #1C8E6D
square
#341C8E #8E1C3D #768E1C #1C8E6D
split-complementary
#341C8E #8E6D1C #3D8E1C
monochromatic
#0F0828 #21125B #341C8E #4726C1 #6849DB

Accessibility & contrast

On white

12.33
#341C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C8E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8E#FFFFFF#000000##FFFFFF
##341C8E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341c8e;
/* rgb */ color: rgb(52, 28, 142);
/* oklch */ color: oklch(34.7% 0.172 282.3);
Tailwind
colors: {
  custom: {
    50: '#785cb0',
    500: '#341c8e',
    950: '#000000',
  },
}
SCSS
$custom: #341c8e;
$custom-light: #785cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8e",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 252.632,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34676,
    "c": 0.17249,
    "h": 282.3
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#341C8E
secondary
#A5BD49
accent
#EA3EC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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