#341771#341771

#341771 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.142 H 290.2°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#341771
RGBrgb(52, 23, 113)
HSLhsl(259, 66%, 27%)
HSVhsv(259, 80%, 44%)
CMYKcmyk(54%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.08, 36.67, -46.48)
CIE-LCHlch(18.08, 59.21, 308.27°)
OKLaboklab(31.03% 0.0491 -0.1336)
OKLCHoklch(31.03% 0.142 290.2)
XYZxyz(4.7023, 2.5349, 15.8611)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341771 #547117
analogous
#172771 #341771 #611771
triadic
#341771 #713417 #177134
tetradic
#341771 #711727 #547117 #177161
square
#341771 #711727 #547117 #177161
split-complementary
#341771 #716117 #277117
monochromatic
#0C0519 #1D0D3E #341771 #4B21A4 #642ED4

Accessibility & contrast

On white

13.93
#341771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#341771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341771
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341771#FFFFFF#000000##FFFFFF
##3417711.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#1E3043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #341771;
/* rgb */ color: rgb(52, 23, 113);
/* oklch */ color: oklch(31.0% 0.142 290.2);
Tailwind
colors: {
  custom: {
    50: '#73589b',
    500: '#341771',
    950: '#000000',
  },
}
SCSS
$custom: #341771;
$custom-light: #73589b;
$custom-dark: #000000;
JSON
{
  "hex": "#341771",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 259.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.14232,
    "h": 290.2
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#341771
secondary
#85A73D
accent
#E93FB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341771

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

Preview Lab → · Contrast checker → · Palette generator →

#341771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva