#341A9E#341A9E

#341A9E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.193 H 279.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#341A9E
RGBrgb(52, 26, 158)
HSLhsl(252, 72%, 36%)
HSVhsv(252, 84%, 62%)
CMYKcmyk(67.1%, 83.5%, 0%, 38%)
CIE-LABlab(23.46, 48.62, -65.87)
CIE-LCHlch(23.46, 81.87, 306.43°)
OKLaboklab(36.22% 0.0326 -0.1902)
OKLCHoklch(36.22% 0.193 279.7)
XYZxyz(7.9552, 3.9368, 32.6818)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9E #849E1A
analogous
#1A429E #341A9E #761A9E
triadic
#341A9E #9E341A #1A9E34
tetradic
#341A9E #9E1A42 #849E1A #1A9E76
square
#341A9E #9E1A42 #849E1A #1A9E76
split-complementary
#341A9E #9E761A #429E1A
monochromatic
#110935 #231169 #341A9E #4523D3 #6D50E2

Accessibility & contrast

On white

11.75
#341A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#341A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A9E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9E#FFFFFF#000000##FFFFFF
##341A9E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.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: #341a9e;
/* rgb */ color: rgb(52, 26, 158);
/* oklch */ color: oklch(36.2% 0.193 279.7);
Tailwind
colors: {
  custom: {
    50: '#7c5cbc',
    500: '#341a9e',
    950: '#000000',
  },
}
SCSS
$custom: #341a9e;
$custom-light: #7c5cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9e",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 251.818,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36221,
    "c": 0.19295,
    "h": 279.7
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#341A9E
secondary
#AEC54F
accent
#EE39CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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