#341C8D#341C8D

#341C8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.171 H 282.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#341C8D
RGBrgb(52, 28, 141)
HSLhsl(253, 67%, 33%)
HSVhsv(253, 80%, 55%)
CMYKcmyk(63.1%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.88, 42.61, -57.99)
CIE-LCHlch(21.88, 71.96, 306.31°)
OKLaboklab(34.57% 0.0369 -0.1673)
OKLCHoklch(34.57% 0.171 282.5)
XYZxyz(6.6376, 3.4832, 25.5167)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C8D #758D1C
analogous
#1C3D8D #341C8D #6C1C8D
triadic
#341C8D #8D341C #1C8D34
tetradic
#341C8D #8D1C3D #758D1C #1C8D6C
square
#341C8D #8D1C3D #758D1C #1C8D6C
split-complementary
#341C8D #8D6C1C #3D8D1C
monochromatic
#0E0827 #21125A #341C8D #4726C0 #6849DB

Accessibility & contrast

On white

12.38
#341C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C8D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C8D#FFFFFF#000000##FFFFFF
##341C8D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341c8d;
/* rgb */ color: rgb(52, 28, 141);
/* oklch */ color: oklch(34.6% 0.171 282.5);
Tailwind
colors: {
  custom: {
    50: '#785caf',
    500: '#341c8d',
    950: '#000000',
  },
}
SCSS
$custom: #341c8d;
$custom-light: #785caf;
$custom-dark: #000000;
JSON
{
  "hex": "#341c8d",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 252.743,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.17129,
    "h": 282.5
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#341C8D
secondary
#A4BD48
accent
#EA3EC5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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