#341B94#341B94

#341B94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.181 H 281.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#341B94
RGBrgb(52, 27, 148)
HSLhsl(252, 69%, 34%)
HSVhsv(252, 82%, 58%)
CMYKcmyk(64.9%, 81.8%, 0%, 42%)
CIE-LABlab(22.48, 45.21, -61.34)
CIE-LCHlch(22.48, 76.20, 306.39°)
OKLaboklab(35.21% 0.0354 -0.177)
OKLCHoklch(35.21% 0.181 281.3)
XYZxyz(7.1517, 3.6515, 28.3392)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B94 #7B941B
analogous
#1B3E94 #341B94 #711B94
triadic
#341B94 #94341B #1B9434
tetradic
#341B94 #941B3E #7B941B #1B9471
square
#341B94 #941B3E #7B941B #1B9471
split-complementary
#341B94 #94711B #3E941B
monochromatic
#10082C #221260 #341B94 #4624C8 #6A4BDE

Accessibility & contrast

On white

12.14
#341B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B94
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B94#FFFFFF#000000##FFFFFF
##341B941.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341b94;
/* rgb */ color: rgb(52, 27, 148);
/* oklch */ color: oklch(35.2% 0.181 281.3);
Tailwind
colors: {
  custom: {
    50: '#795cb5',
    500: '#341b94',
    950: '#000000',
  },
}
SCSS
$custom: #341b94;
$custom-light: #795cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341b94",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 252.397,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.18051,
    "h": 281.3
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#341B94
secondary
#A8C04B
accent
#EC3CC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341B94

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

Preview Lab → · Contrast checker → · Palette generator →

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