#341B50#341B50

#341B50 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.094 H 302.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#341B50
RGBrgb(52, 27, 80)
HSLhsl(268, 50%, 21%)
HSVhsv(268, 66%, 31%)
CMYKcmyk(35%, 66.3%, 0%, 68.6%)
CIE-LABlab(15.97, 24.59, -28.02)
CIE-LCHlch(15.97, 37.28, 311.27°)
OKLaboklab(28.61% 0.0507 -0.0794)
OKLCHoklch(28.61% 0.094 302.6)
XYZxyz(3.2557, 2.0931, 7.8204)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B50 #37501B
analogous
#1B1C50 #341B50 #4E1B50
triadic
#341B50 #50341B #1B5034
tetradic
#341B50 #501B1C #37501B #1B504E
square
#341B50 #501B1C #37501B #1B504E
split-complementary
#341B50 #504E1B #1C501B
monochromatic
#0F0817 #160C22 #341B50 #522A7E #6F3AAC

Accessibility & contrast

On white

14.80
#341B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B50
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B50#FFFFFF#000000##FFFFFF
##341B501.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012752
Deuteranopia (green-blind)
#0C284F
Tritanopia (blue-blind)
#2F2632
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341b50;
/* rgb */ color: rgb(52, 27, 80);
/* oklch */ color: oklch(28.6% 0.094 302.6);
Tailwind
colors: {
  custom: {
    50: '#6e5981',
    500: '#341b50',
    950: '#000000',
  },
}
SCSS
$custom: #341b50;
$custom-light: #6e5981;
$custom-dark: #000000;
JSON
{
  "hex": "#341b50",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 268.302,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28612,
    "c": 0.09418,
    "h": 302.6
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#341B50
secondary
#658641
accent
#D94F98
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341B50

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

Preview Lab → · Contrast checker → · Palette generator →

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