#341272#341272

#341272 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.149 H 290.8°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#341272
RGBrgb(52, 18, 114)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 84%, 45%)
CMYKcmyk(54.4%, 84.2%, 0%, 55.3%)
CIE-LABlab(17.35, 39.35, -48.31)
CIE-LCHlch(17.35, 62.31, 309.16°)
OKLaboklab(30.56% 0.0527 -0.1389)
OKLCHoklch(30.56% 0.149 290.8)
XYZxyz(4.6689, 2.3774, 16.1292)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341272 #507212
analogous
#122072 #341272 #641272
triadic
#341272 #723412 #127234
tetradic
#341272 #721220 #507212 #127264
square
#341272 #721220 #507212 #127264
split-complementary
#341272 #726412 #207212
monochromatic
#0C041A #1C0A3D #341272 #4C1AA7 #6423DC

Accessibility & contrast

On white

14.23
#341272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341272
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341272#FFFFFF#000000##FFFFFF
##3412721.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#1D2E43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341272;
/* rgb */ color: rgb(52, 18, 114);
/* oklch */ color: oklch(30.6% 0.149 290.8);
Tailwind
colors: {
  custom: {
    50: '#74559c',
    500: '#341272',
    950: '#000000',
  },
}
SCSS
$custom: #341272;
$custom-light: #74559c;
$custom-dark: #000000;
JSON
{
  "hex": "#341272",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 261.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.14854,
    "h": 290.8
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#341272
secondary
#81A937
accent
#EF38AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341272

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

Preview Lab → · Contrast checker → · Palette generator →

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