#341B9E#341B9E

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

Color values

HEX#341B9E
RGBrgb(52, 27, 158)
HSLhsl(251, 71%, 36%)
HSVhsv(251, 83%, 62%)
CMYKcmyk(67.1%, 82.9%, 0%, 38%)
CIE-LABlab(23.61, 48.18, -65.62)
CIE-LCHlch(23.61, 81.41, 306.29°)
OKLaboklab(36.32% 0.0321 -0.1895)
OKLCHoklch(36.32% 0.192 279.6)
XYZxyz(7.9777, 3.9819, 32.6893)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B9E #859E1B
analogous
#1B449E #341B9E #761B9E
triadic
#341B9E #9E341B #1B9E34
tetradic
#341B9E #9E1B44 #859E1B #1B9E76
square
#341B9E #9E1B44 #859E1B #1B9E76
split-complementary
#341B9E #9E761B #449E1B
monochromatic
#120935 #23126A #341B9E #4524D2 #6D52E1

Accessibility & contrast

On white

11.69
#341B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B9E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B9E#FFFFFF#000000##FFFFFF
##341B9E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341b9e;
/* rgb */ color: rgb(52, 27, 158);
/* oklch */ color: oklch(36.3% 0.192 279.6);
Tailwind
colors: {
  custom: {
    50: '#7b5dbc',
    500: '#341b9e',
    950: '#000000',
  },
}
SCSS
$custom: #341b9e;
$custom-light: #7b5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#341b9e",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 251.45,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36324,
    "c": 0.19217,
    "h": 279.6
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#341B9E
secondary
#AEC451
accent
#EE3ACB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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