#341A8D#341A8D

#341A8D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.173 H 282.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#341A8D
RGBrgb(52, 26, 141)
HSLhsl(254, 69%, 33%)
HSVhsv(254, 82%, 55%)
CMYKcmyk(63.1%, 81.6%, 0%, 44.7%)
CIE-LABlab(21.55, 43.58, -58.54)
CIE-LCHlch(21.55, 72.98, 306.67°)
OKLaboklab(34.34% 0.0382 -0.1688)
OKLCHoklch(34.34% 0.173 282.7)
XYZxyz(6.5918, 3.3915, 25.5014)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8D #738D1A
analogous
#1A3A8D #341A8D #6D1A8D
triadic
#341A8D #8D341A #1A8D34
tetradic
#341A8D #8D1A3A #738D1A #1A8D6D
square
#341A8D #8D1A3A #738D1A #1A8D6D
split-complementary
#341A8D #8D6D1A #3A8D1A
monochromatic
#0E0726 #211059 #341A8D #4724C1 #6745DD

Accessibility & contrast

On white

12.51
#341A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#341A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A8D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8D#FFFFFF#000000##FFFFFF
##341A8D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341a8d;
/* rgb */ color: rgb(52, 26, 141);
/* oklch */ color: oklch(34.3% 0.173 282.7);
Tailwind
colors: {
  custom: {
    50: '#785bb0',
    500: '#341a8d',
    950: '#000000',
  },
}
SCSS
$custom: #341a8d;
$custom-light: #785bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8d",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 253.565,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34335,
    "c": 0.17311,
    "h": 282.7
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#341A8D
secondary
#A3BE45
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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