#341B7C#341B7C

#341B7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 286.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#341B7C
RGBrgb(52, 27, 124)
HSLhsl(255, 64%, 30%)
HSVhsv(255, 78%, 49%)
CMYKcmyk(58.1%, 78.2%, 0%, 51.4%)
CIE-LABlab(19.92, 37.93, -50.52)
CIE-LCHlch(19.92, 63.17, 306.90°)
OKLaboklab(32.66% 0.0427 -0.1454)
OKLCHoklch(32.66% 0.152 286.4)
XYZxyz(5.4451, 2.9689, 19.3510)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B7C #637C1B
analogous
#1B337C #341B7C #651B7C
triadic
#341B7C #7C341B #1B7C34
tetradic
#341B7C #7C1B33 #637C1B #1B7C65
square
#341B7C #7C1B33 #637C1B #1B7C65
split-complementary
#341B7C #7C651B #337C1B
monochromatic
#0B0519 #1F104A #341B7C #4926AE #643DD5

Accessibility & contrast

On white

13.18
#341B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B7C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B7C#FFFFFF#000000##FFFFFF
##341B7C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#12364A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341b7c;
/* rgb */ color: rgb(52, 27, 124);
/* oklch */ color: oklch(32.7% 0.152 286.4);
Tailwind
colors: {
  custom: {
    50: '#755ba3',
    500: '#341b7c',
    950: '#000000',
  },
}
SCSS
$custom: #341b7c;
$custom-light: #755ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#341b7c",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 255.464,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32658,
    "c": 0.15155,
    "h": 286.4
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#341B7C
secondary
#94B043
accent
#E741BC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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