#341B77#341B77

#341B77 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.145 H 287.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#341B77
RGBrgb(52, 27, 119)
HSLhsl(256, 63%, 29%)
HSVhsv(256, 77%, 47%)
CMYKcmyk(56.3%, 77.3%, 0%, 53.3%)
CIE-LABlab(19.41, 36.39, -48.15)
CIE-LCHlch(19.41, 60.36, 307.08°)
OKLaboklab(32.15% 0.0441 -0.1385)
OKLCHoklch(32.15% 0.145 287.6)
XYZxyz(5.1369, 2.8456, 17.7278)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B77 #5E771B
analogous
#1B3077 #341B77 #621B77
triadic
#341B77 #77341B #1B7734
tetradic
#341B77 #771B30 #5E771B #1B7762
square
#341B77 #771B30 #5E771B #1B7762
split-complementary
#341B77 #77621B #30771B
monochromatic
#0B0619 #1E1045 #341B77 #4A26A9 #633AD2

Accessibility & contrast

On white

13.38
#341B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#341B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B77
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B77#FFFFFF#000000##FFFFFF
##341B771.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#183447
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #341b77;
/* rgb */ color: rgb(52, 27, 119);
/* oklch */ color: oklch(32.1% 0.145 287.6);
Tailwind
colors: {
  custom: {
    50: '#745a9f',
    500: '#341b77',
    950: '#000000',
  },
}
SCSS
$custom: #341b77;
$custom-light: #745a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#341b77",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 256.304,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3215,
    "c": 0.14533,
    "h": 287.6
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#341B77
secondary
#8FAB42
accent
#E642B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341B77

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

Preview Lab → · Contrast checker → · Palette generator →

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