#341372#341372

#341372 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.148 H 290.6°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#341372
RGBrgb(52, 19, 114)
HSLhsl(261, 71%, 26%)
HSVhsv(261, 83%, 45%)
CMYKcmyk(54.4%, 83.3%, 0%, 55.3%)
CIE-LABlab(17.51, 38.90, -48.06)
CIE-LCHlch(17.51, 61.83, 308.98°)
OKLaboklab(30.66% 0.052 -0.1382)
OKLCHoklch(30.66% 0.148 290.6)
XYZxyz(4.6854, 2.4105, 16.1347)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341372 #517213
analogous
#132172 #341372 #631372
triadic
#341372 #723413 #137234
tetradic
#341372 #721321 #517213 #137263
square
#341372 #721321 #517213 #137263
split-complementary
#341372 #726313 #217213
monochromatic
#0C041A #1C0A3E #341372 #4C1CA6 #6425DB

Accessibility & contrast

On white

14.17
#341372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341372
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341372#FFFFFF#000000##FFFFFF
##3413721.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#1D2F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341372;
/* rgb */ color: rgb(52, 19, 114);
/* oklch */ color: oklch(30.7% 0.148 290.6);
Tailwind
colors: {
  custom: {
    50: '#73569c',
    500: '#341372',
    950: '#000000',
  },
}
SCSS
$custom: #341372;
$custom-light: #73569c;
$custom-dark: #000000;
JSON
{
  "hex": "#341372",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 260.842,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30663,
    "c": 0.1476,
    "h": 290.6
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#341372
secondary
#82A938
accent
#EE3AAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341372

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

Preview Lab → · Contrast checker → · Palette generator →

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