#341B85#341B85

#341B85 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.163 H 284.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#341B85
RGBrgb(52, 27, 133)
HSLhsl(254, 66%, 31%)
HSVhsv(254, 80%, 52%)
CMYKcmyk(60.9%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.85, 40.68, -54.68)
CIE-LCHlch(20.85, 68.15, 306.65°)
OKLaboklab(33.6% 0.04 -0.1576)
OKLCHoklch(33.6% 0.163 284.3)
XYZxyz(6.0404, 3.2070, 22.4865)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B85 #6C851B
analogous
#1B3785 #341B85 #691B85
triadic
#341B85 #85341B #1B8534
tetradic
#341B85 #851B37 #6C851B #1B8569
square
#341B85 #851B37 #6C851B #1B8569
split-complementary
#341B85 #85691B #37851B
monochromatic
#0C061F #201152 #341B85 #4825B8 #6542D9

Accessibility & contrast

On white

12.79
#341B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B85
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B85#FFFFFF#000000##FFFFFF
##341B851.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#013A4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341b85;
/* rgb */ color: rgb(52, 27, 133);
/* oklch */ color: oklch(33.6% 0.163 284.3);
Tailwind
colors: {
  custom: {
    50: '#765baa',
    500: '#341b85',
    950: '#000000',
  },
}
SCSS
$custom: #341b85;
$custom-light: #765baa;
$custom-dark: #000000;
JSON
{
  "hex": "#341b85",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 254.151,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33595,
    "c": 0.16258,
    "h": 284.3
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#341B85
secondary
#9DB844
accent
#E93FC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B85

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

Preview Lab → · Contrast checker → · Palette generator →

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