#341A8C#341A8C

#341A8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.172 H 282.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#341A8C
RGBrgb(52, 26, 140)
HSLhsl(254, 69%, 33%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(62.9%, 81.4%, 0%, 45.1%)
CIE-LABlab(21.44, 43.28, -58.10)
CIE-LCHlch(21.44, 72.45, 306.68°)
OKLaboklab(34.23% 0.0385 -0.1675)
OKLCHoklch(34.23% 0.172 282.9)
XYZxyz(6.5177, 3.3618, 25.1113)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8C #728C1A
analogous
#1A398C #341A8C #6D1A8C
triadic
#341A8C #8C341A #1A8C34
tetradic
#341A8C #8C1A39 #728C1A #1A8C6D
square
#341A8C #8C1A39 #728C1A #1A8C6D
split-complementary
#341A8C #8C6D1A #398C1A
monochromatic
#0E0725 #211058 #341A8C #4724C0 #6744DC

Accessibility & contrast

On white

12.56
#341A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A8C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8C#FFFFFF#000000##FFFFFF
##341A8C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341a8c;
/* rgb */ color: rgb(52, 26, 140);
/* oklch */ color: oklch(34.2% 0.172 282.9);
Tailwind
colors: {
  custom: {
    50: '#785baf',
    500: '#341a8c',
    950: '#000000',
  },
}
SCSS
$custom: #341a8c;
$custom-light: #785baf;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8c",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 253.684,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34227,
    "c": 0.17191,
    "h": 282.9
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#341A8C
secondary
#A2BE44
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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