#341A85#341A85

#341A85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 284.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#341A85
RGBrgb(52, 26, 133)
HSLhsl(255, 67%, 31%)
HSVhsv(255, 80%, 52%)
CMYKcmyk(60.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.68, 41.18, -54.96)
CIE-LCHlch(20.68, 68.68, 306.84°)
OKLaboklab(33.47% 0.0407 -0.1584)
OKLCHoklch(33.47% 0.164 284.4)
XYZxyz(6.0179, 3.1619, 22.4790)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A85 #6B851A
analogous
#1A3585 #341A85 #691A85
triadic
#341A85 #85341A #1A8534
tetradic
#341A85 #851A35 #6B851A #1A8569
square
#341A85 #851A35 #6B851A #1A8569
split-complementary
#341A85 #85691A #35851A
monochromatic
#0C061F #201052 #341A85 #4824B8 #6540DA

Accessibility & contrast

On white

12.86
#341A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A85
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A85#FFFFFF#000000##FFFFFF
##341A851.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#01394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341a85;
/* rgb */ color: rgb(52, 26, 133);
/* oklch */ color: oklch(33.5% 0.164 284.4);
Tailwind
colors: {
  custom: {
    50: '#765baa',
    500: '#341a85',
    950: '#000000',
  },
}
SCSS
$custom: #341a85;
$custom-light: #765baa;
$custom-dark: #000000;
JSON
{
  "hex": "#341a85",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 254.579,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33474,
    "c": 0.16355,
    "h": 284.4
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#341A85
secondary
#9CB842
accent
#EA3EC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A85

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

Preview Lab → · Contrast checker → · Palette generator →

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