#341B8A#341B8A

#341B8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.169 H 283.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#341B8A
RGBrgb(52, 27, 138)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 54%)
CMYKcmyk(62.3%, 80.4%, 0%, 45.9%)
CIE-LABlab(21.39, 42.19, -56.93)
CIE-LCHlch(21.39, 70.86, 306.54°)
OKLaboklab(34.13% 0.0385 -0.1642)
OKLCHoklch(34.13% 0.169 283.2)
XYZxyz(6.3941, 3.3485, 24.3492)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B8A #718A1B
analogous
#1B398A #341B8A #6C1B8A
triadic
#341B8A #8A341B #1B8A34
tetradic
#341B8A #8A1B39 #718A1B #1B8A6C
square
#341B8A #8A1B39 #718A1B #1B8A6C
split-complementary
#341B8A #8A6C1B #398A1B
monochromatic
#0D0724 #211157 #341B8A #4725BD #6745DB

Accessibility & contrast

On white

12.58
#341B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B8A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B8A#FFFFFF#000000##FFFFFF
##341B8A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341b8a;
/* rgb */ color: rgb(52, 27, 138);
/* oklch */ color: oklch(34.1% 0.169 283.2);
Tailwind
colors: {
  custom: {
    50: '#775bad',
    500: '#341b8a',
    950: '#000000',
  },
}
SCSS
$custom: #341b8a;
$custom-light: #775bad;
$custom-dark: #000000;
JSON
{
  "hex": "#341b8a",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 253.514,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34127,
    "c": 0.16861,
    "h": 283.2
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#341B8A
secondary
#A1BC45
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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