#341A5F#341A5F

#341A5F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.116 H 295.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#341A5F
RGBrgb(52, 26, 95)
HSLhsl(263, 57%, 24%)
HSVhsv(263, 73%, 37%)
CMYKcmyk(45.3%, 72.6%, 0%, 62.7%)
CIE-LABlab(16.96, 29.63, -36.49)
CIE-LCHlch(16.96, 47.01, 309.08°)
OKLaboklab(29.72% 0.0504 -0.1043)
OKLCHoklch(29.72% 0.116 295.8)
XYZxyz(3.8506, 2.2950, 11.0644)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A5F #455F1A
analogous
#1A225F #341A5F #561A5F
triadic
#341A5F #5F341A #1A5F34
tetradic
#341A5F #5F1A22 #455F1A #1A5F56
square
#341A5F #5F1A22 #455F1A #1A5F56
split-complementary
#341A5F #5F561A #225F1A
monochromatic
#0D0718 #1A0D2F #341A5F #4E278F #6934BF

Accessibility & contrast

On white

14.39
#341A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#341A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A5F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A5F#FFFFFF#000000##FFFFFF
##341A5F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#292B3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341a5f;
/* rgb */ color: rgb(52, 26, 95);
/* oklch */ color: oklch(29.7% 0.116 295.8);
Tailwind
colors: {
  custom: {
    50: '#70588d',
    500: '#341a5f',
    950: '#000000',
  },
}
SCSS
$custom: #341a5f;
$custom-light: #70588d;
$custom-dark: #000000;
JSON
{
  "hex": "#341a5f",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 262.609,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29717,
    "c": 0.11584,
    "h": 295.8
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#341A5F
secondary
#759540
accent
#E048A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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