#341A8A#341A8A

#341A8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.170 H 283.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#341A8A
RGBrgb(52, 26, 138)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 54%)
CMYKcmyk(62.3%, 81.2%, 0%, 45.9%)
CIE-LABlab(21.22, 42.68, -57.21)
CIE-LCHlch(21.22, 71.38, 306.72°)
OKLaboklab(34.01% 0.0391 -0.165)
OKLCHoklch(34.01% 0.17 283.3)
XYZxyz(6.3716, 3.3034, 24.3417)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8A #708A1A
analogous
#1A388A #341A8A #6C1A8A
triadic
#341A8A #8A341A #1A8A34
tetradic
#341A8A #8A1A38 #708A1A #1A8A6C
square
#341A8A #8A1A38 #708A1A #1A8A6C
split-complementary
#341A8A #8A6C1A #388A1A
monochromatic
#0D0723 #211057 #341A8A #4724BD #6643DC

Accessibility & contrast

On white

12.64
#341A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#341A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A8A
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8A#FFFFFF#000000##FFFFFF
##341A8A1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341a8a;
/* rgb */ color: rgb(52, 26, 138);
/* oklch */ color: oklch(34.0% 0.170 283.3);
Tailwind
colors: {
  custom: {
    50: '#775bad',
    500: '#341a8a',
    950: '#000000',
  },
}
SCSS
$custom: #341a8a;
$custom-light: #775bad;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8a",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 253.929,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3401,
    "c": 0.16954,
    "h": 283.3
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#341A8A
secondary
#A0BD43
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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