#341873#341873

#341873 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.144 H 289.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#341873
RGBrgb(52, 24, 115)
HSLhsl(258, 65%, 27%)
HSVhsv(258, 79%, 45%)
CMYKcmyk(54.8%, 79.1%, 0%, 54.9%)
CIE-LABlab(18.46, 36.76, -47.15)
CIE-LCHlch(18.46, 59.79, 307.94°)
OKLaboklab(31.36% 0.0477 -0.1355)
OKLCHoklch(31.36% 0.144 289.4)
XYZxyz(4.8364, 2.6209, 16.4674)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341873 #577318
analogous
#182973 #341873 #621873
triadic
#341873 #733418 #187334
tetradic
#341873 #731829 #577318 #187362
square
#341873 #731829 #577318 #187362
split-complementary
#341873 #736218 #297318
monochromatic
#0B0519 #1D0D40 #341873 #4B23A6 #6331D4

Accessibility & contrast

On white

13.78
#341873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#341873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341873
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341873#FFFFFF#000000##FFFFFF
##3418731.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#1C3144
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341873;
/* rgb */ color: rgb(52, 24, 115);
/* oklch */ color: oklch(31.4% 0.144 289.4);
Tailwind
colors: {
  custom: {
    50: '#73589c',
    500: '#341873',
    950: '#000000',
  },
}
SCSS
$custom: #341873;
$custom-light: #73589c;
$custom-dark: #000000;
JSON
{
  "hex": "#341873",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 258.462,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31355,
    "c": 0.14369,
    "h": 289.4
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#341873
secondary
#88A83F
accent
#E83FB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341873

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

Preview Lab → · Contrast checker → · Palette generator →

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