#341E8C#341E8C

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

Color values

HEX#341E8C
RGBrgb(52, 30, 140)
HSLhsl(252, 65%, 33%)
HSVhsv(252, 79%, 55%)
CMYKcmyk(62.9%, 78.6%, 0%, 45.1%)
CIE-LABlab(22.13, 41.29, -56.96)
CIE-LCHlch(22.13, 70.35, 305.94°)
OKLaboklab(34.71% 0.036 -0.1643)
OKLCHoklch(34.71% 0.168 282.3)
XYZxyz(6.6126, 3.5516, 25.1429)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E8C #768C1E
analogous
#1E3F8C #341E8C #6B1E8C
triadic
#341E8C #8C341E #1E8C34
tetradic
#341E8C #8C1E3F #768C1E #1E8C6B
square
#341E8C #8C1E3F #768C1E #1E8C6B
split-complementary
#341E8C #8C6B1E #3F8C1E
monochromatic
#0F0827 #21135A #341E8C #4729BE #684CD9

Accessibility & contrast

On white

12.28
#341E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#341E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E8C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E8C#FFFFFF#000000##FFFFFF
##341E8C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341e8c;
/* rgb */ color: rgb(52, 30, 140);
/* oklch */ color: oklch(34.7% 0.168 282.3);
Tailwind
colors: {
  custom: {
    50: '#785daf',
    500: '#341e8c',
    950: '#000000',
  },
}
SCSS
$custom: #341e8c;
$custom-light: #785daf;
$custom-dark: #000000;
JSON
{
  "hex": "#341e8c",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 252,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.16816,
    "h": 282.3
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#341E8C
secondary
#A5BB4B
accent
#E840C6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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