#341A5C#341A5C

#341A5C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.112 H 297.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#341A5C
RGBrgb(52, 26, 92)
HSLhsl(264, 56%, 23%)
HSVhsv(264, 72%, 36%)
CMYKcmyk(43.5%, 71.7%, 0%, 63.9%)
CIE-LABlab(16.71, 28.73, -34.91)
CIE-LCHlch(16.71, 45.22, 309.45°)
OKLaboklab(29.45% 0.0509 -0.0996)
OKLCHoklch(29.45% 0.112 297.1)
XYZxyz(3.7168, 2.2415, 10.3600)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A5C #425C1A
analogous
#1A215C #341A5C #551A5C
triadic
#341A5C #5C341A #1A5C34
tetradic
#341A5C #5C1A21 #425C1A #1A5C55
square
#341A5C #5C1A21 #425C1A #1A5C55
split-complementary
#341A5C #5C551A #215C1A
monochromatic
#0D0718 #190D2C #341A5C #4F278C #6A35BB

Accessibility & contrast

On white

14.50
#341A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#341A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A5C
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A5C#FFFFFF#000000##FFFFFF
##341A5C1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#2A2A38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341a5c;
/* rgb */ color: rgb(52, 26, 92);
/* oklch */ color: oklch(29.5% 0.112 297.1);
Tailwind
colors: {
  custom: {
    50: '#6f588b',
    500: '#341a5c',
    950: '#000000',
  },
}
SCSS
$custom: #341a5c;
$custom-light: #6f588b;
$custom-dark: #000000;
JSON
{
  "hex": "#341a5c",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 263.636,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29451,
    "c": 0.11188,
    "h": 297.1
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#341A5C
secondary
#729240
accent
#DF49A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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