#341A7F#341A7F

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

Color values

HEX#341A7F
RGBrgb(52, 26, 127)
HSLhsl(255, 66%, 30%)
HSVhsv(255, 80%, 50%)
CMYKcmyk(59.1%, 79.5%, 0%, 50.2%)
CIE-LABlab(20.05, 39.36, -52.21)
CIE-LCHlch(20.05, 65.39, 307.01°)
OKLaboklab(32.84% 0.0426 -0.1504)
OKLCHoklch(32.84% 0.156 285.8)
XYZxyz(5.6152, 3.0008, 20.3579)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A7F #657F1A
analogous
#1A327F #341A7F #671A7F
triadic
#341A7F #7F341A #1A7F34
tetradic
#341A7F #7F1A32 #657F1A #1A7F67
square
#341A7F #7F1A32 #657F1A #1A7F67
split-complementary
#341A7F #7F671A #327F1A
monochromatic
#0A0519 #1F104C #341A7F #4924B2 #643CD7

Accessibility & contrast

On white

13.12
#341A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A7F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A7F#FFFFFF#000000##FFFFFF
##341A7F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#0E374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341a7f;
/* rgb */ color: rgb(52, 26, 127);
/* oklch */ color: oklch(32.8% 0.156 285.8);
Tailwind
colors: {
  custom: {
    50: '#755aa5',
    500: '#341a7f',
    950: '#000000',
  },
}
SCSS
$custom: #341a7f;
$custom-light: #755aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#341a7f",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 255.446,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.15627,
    "h": 285.8
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#341A7F
secondary
#96B342
accent
#E93FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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