#341D7C#341D7C

#341D7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.149 H 286.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#341D7C
RGBrgb(52, 29, 124)
HSLhsl(255, 62%, 30%)
HSVhsv(255, 77%, 49%)
CMYKcmyk(58.1%, 76.6%, 0%, 51.4%)
CIE-LABlab(20.30, 36.85, -49.90)
CIE-LCHlch(20.30, 62.03, 306.45°)
OKLaboklab(32.92% 0.0411 -0.1436)
OKLCHoklch(32.92% 0.149 286)
XYZxyz(5.4925, 3.0637, 19.3668)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D7C #657C1D
analogous
#1D367C #341D7C #631D7C
triadic
#341D7C #7C341D #1D7C34
tetradic
#341D7C #7C1D36 #657C1D #1D7C63
square
#341D7C #7C1D36 #657C1D #1D7C63
split-complementary
#341D7C #7C631D #367C1D
monochromatic
#0A0619 #1F114A #341D7C #4929AE #6441D3

Accessibility & contrast

On white

13.02
#341D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D7C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D7C#FFFFFF#000000##FFFFFF
##341D7C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.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: #341d7c;
/* rgb */ color: rgb(52, 29, 124);
/* oklch */ color: oklch(32.9% 0.149 286.0);
Tailwind
colors: {
  custom: {
    50: '#745ca3',
    500: '#341d7c',
    950: '#000000',
  },
}
SCSS
$custom: #341d7c;
$custom-light: #745ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#341d7c",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 254.526,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.32924,
    "c": 0.14937,
    "h": 286
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#341D7C
secondary
#96B045
accent
#E543BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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