#341E9B#341E9B

#341E9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.186 H 279.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#341E9B
RGBrgb(52, 30, 155)
HSLhsl(251, 68%, 36%)
HSVhsv(251, 81%, 61%)
CMYKcmyk(66.5%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.75, 45.89, -63.56)
CIE-LCHlch(23.75, 78.39, 305.83°)
OKLaboklab(36.32% 0.0316 -0.1835)
OKLCHoklch(36.32% 0.186 279.8)
XYZxyz(7.7950, 4.0245, 31.3700)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E9B #859B1E
analogous
#1E479B #341E9B #731E9B
triadic
#341E9B #9B341E #1E9B34
tetradic
#341E9B #9B1E47 #859B1E #1E9B73
square
#341E9B #9B1E47 #859B1E #1E9B73
split-complementary
#341E9B #9B731E #479B1E
monochromatic
#120A34 #231468 #341E9B #4528CE #6D55DE

Accessibility & contrast

On white

11.63
#341E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#341E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E9B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E9B#FFFFFF#000000##FFFFFF
##341E9B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #341e9b;
/* rgb */ color: rgb(52, 30, 155);
/* oklch */ color: oklch(36.3% 0.186 279.8);
Tailwind
colors: {
  custom: {
    50: '#7b5eba',
    500: '#341e9b',
    950: '#000000',
  },
}
SCSS
$custom: #341e9b;
$custom-light: #7b5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#341e9b",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 250.56,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36323,
    "c": 0.18619,
    "h": 279.8
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#341E9B
secondary
#AEC253
accent
#EA3DCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #341E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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