#341E8B#341E8B

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

Color values

HEX#341E8B
RGBrgb(52, 30, 139)
HSLhsl(252, 64%, 33%)
HSVhsv(252, 78%, 55%)
CMYKcmyk(62.6%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.02, 40.98, -56.51)
CIE-LCHlch(22.02, 69.81, 305.95°)
OKLaboklab(34.6% 0.0362 -0.163)
OKLCHoklch(34.6% 0.167 282.5)
XYZxyz(6.5392, 3.5222, 24.7564)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E8B #758B1E
analogous
#1E3E8B #341E8B #6A1E8B
triadic
#341E8B #8B341E #1E8B34
tetradic
#341E8B #8B1E3E #758B1E #1E8B6A
square
#341E8B #8B1E3E #758B1E #1E8B6A
split-complementary
#341E8B #8B6A1E #3E8B1E
monochromatic
#0E0826 #211359 #341E8B #4729BD #684BD8

Accessibility & contrast

On white

12.32
#341E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341E8B
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E8B#FFFFFF#000000##FFFFFF
##341E8B1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341e8b;
/* rgb */ color: rgb(52, 30, 139);
/* oklch */ color: oklch(34.6% 0.167 282.5);
Tailwind
colors: {
  custom: {
    50: '#775dae',
    500: '#341e8b',
    950: '#000000',
  },
}
SCSS
$custom: #341e8b;
$custom-light: #775dae;
$custom-dark: #000000;
JSON
{
  "hex": "#341e8b",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 252.11,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34603,
    "c": 0.16694,
    "h": 282.5
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#341E8B
secondary
#A4BB4A
accent
#E740C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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