#341F8D#341F8D

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

Color values

HEX#341F8D
RGBrgb(52, 31, 141)
HSLhsl(251, 64%, 34%)
HSVhsv(251, 78%, 55%)
CMYKcmyk(63.1%, 78%, 0%, 44.7%)
CIE-LABlab(22.42, 41.08, -57.11)
CIE-LCHlch(22.42, 70.35, 305.73°)
OKLaboklab(34.94% 0.035 -0.1647)
OKLCHoklch(34.94% 0.168 282)
XYZxyz(6.7124, 3.6326, 25.5416)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F8D #788D1F
analogous
#1F418D #341F8D #6B1F8D
triadic
#341F8D #8D341F #1F8D34
tetradic
#341F8D #8D1F41 #788D1F #1F8D6B
square
#341F8D #8D1F41 #788D1F #1F8D6B
split-complementary
#341F8D #8D6B1F #418D1F
monochromatic
#0F0929 #21145B #341F8D #472ABF #694ED8

Accessibility & contrast

On white

12.16
#341F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F8D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F8D#FFFFFF#000000##FFFFFF
##341F8D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341f8d;
/* rgb */ color: rgb(52, 31, 141);
/* oklch */ color: oklch(34.9% 0.168 282.0);
Tailwind
colors: {
  custom: {
    50: '#785eaf',
    500: '#341f8d',
    950: '#000000',
  },
}
SCSS
$custom: #341f8d;
$custom-light: #785eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#341f8d",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 251.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34942,
    "c": 0.1684,
    "h": 282
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#341F8D
secondary
#A6BB4D
accent
#E741C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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