#341273#341273

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

Color values

HEX#341273
RGBrgb(52, 18, 115)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 84%, 45%)
CMYKcmyk(54.8%, 84.3%, 0%, 54.9%)
CIE-LABlab(17.46, 39.63, -48.79)
CIE-LCHlch(17.46, 62.85, 309.09°)
OKLaboklab(30.66% 0.0523 -0.1403)
OKLCHoklch(30.66% 0.15 290.5)
XYZxyz(4.7261, 2.4003, 16.4306)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341273 #517312
analogous
#122073 #341273 #641273
triadic
#341273 #733412 #127334
tetradic
#341273 #731220 #517312 #127364
square
#341273 #731220 #517312 #127364
split-complementary
#341273 #736412 #207312
monochromatic
#0C041A #1C0A3E #341273 #4C1AA8 #6423DD

Accessibility & contrast

On white

14.19
#341273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341273
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341273#FFFFFF#000000##FFFFFF
##3412731.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341273;
/* rgb */ color: rgb(52, 18, 115);
/* oklch */ color: oklch(30.7% 0.150 290.5);
Tailwind
colors: {
  custom: {
    50: '#74559c',
    500: '#341273',
    950: '#000000',
  },
}
SCSS
$custom: #341273;
$custom-light: #74559c;
$custom-dark: #000000;
JSON
{
  "hex": "#341273",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 261.031,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.14971,
    "h": 290.5
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#341273
secondary
#82AA37
accent
#F038AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341273

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

Preview Lab → · Contrast checker → · Palette generator →

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