#341C7C#341C7C

#341C7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.150 H 286.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#341C7C
RGBrgb(52, 28, 124)
HSLhsl(255, 63%, 30%)
HSVhsv(255, 77%, 49%)
CMYKcmyk(58.1%, 77.4%, 0%, 51.4%)
CIE-LABlab(20.11, 37.40, -50.21)
CIE-LCHlch(20.11, 62.61, 306.68°)
OKLaboklab(32.79% 0.0419 -0.1445)
OKLCHoklch(32.79% 0.15 286.2)
XYZxyz(5.4684, 3.0155, 19.3588)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C7C #647C1C
analogous
#1C347C #341C7C #641C7C
triadic
#341C7C #7C341C #1C7C34
tetradic
#341C7C #7C1C34 #647C1C #1C7C64
square
#341C7C #7C1C34 #647C1C #1C7C64
split-complementary
#341C7C #7C641C #347C1C
monochromatic
#0A0619 #1F114A #341C7C #4927AE #643FD4

Accessibility & contrast

On white

13.10
#341C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C7C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C7C#FFFFFF#000000##FFFFFF
##341C7C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#12374B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341c7c;
/* rgb */ color: rgb(52, 28, 124);
/* oklch */ color: oklch(32.8% 0.150 286.2);
Tailwind
colors: {
  custom: {
    50: '#755ba3',
    500: '#341c7c',
    950: '#000000',
  },
}
SCSS
$custom: #341c7c;
$custom-light: #755ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#341c7c",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 255,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3279,
    "c": 0.15047,
    "h": 286.2
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#341C7C
secondary
#95B044
accent
#E642BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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