#341B71#341B71

#341B71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.138 H 289.3°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#341B71
RGBrgb(52, 27, 113)
HSLhsl(257, 61%, 27%)
HSVhsv(257, 76%, 44%)
CMYKcmyk(54%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.83, 34.55, -45.25)
CIE-LCHlch(18.83, 56.93, 307.36°)
OKLaboklab(31.56% 0.0456 -0.13)
OKLCHoklch(31.56% 0.138 289.3)
XYZxyz(4.7879, 2.7060, 15.8896)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B71 #58711B
analogous
#1B2D71 #341B71 #5F1B71
triadic
#341B71 #71341B #1B7134
tetradic
#341B71 #711B2D #58711B #1B715F
square
#341B71 #711B2D #58711B #1B715F
split-complementary
#341B71 #715F1B #2D711B
monochromatic
#0B0619 #1D0F40 #341B71 #4B27A2 #6337CF

Accessibility & contrast

On white

13.63
#341B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B71
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B71#FFFFFF#000000##FFFFFF
##341B711.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#1E3244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341b71;
/* rgb */ color: rgb(52, 27, 113);
/* oklch */ color: oklch(31.6% 0.138 289.3);
Tailwind
colors: {
  custom: {
    50: '#735a9b',
    500: '#341b71',
    950: '#000000',
  },
}
SCSS
$custom: #341b71;
$custom-light: #735a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#341b71",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 257.442,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31555,
    "c": 0.13776,
    "h": 289.3
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#341B71
secondary
#89A642
accent
#E543B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341B71

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

Preview Lab → · Contrast checker → · Palette generator →

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