#341872#341872

#341872 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.142 H 289.7°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#341872
RGBrgb(52, 24, 114)
HSLhsl(259, 65%, 27%)
HSVhsv(259, 79%, 45%)
CMYKcmyk(54.4%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.36, 36.46, -46.67)
CIE-LCHlch(18.36, 59.22, 308.00°)
OKLaboklab(31.25% 0.048 -0.1341)
OKLCHoklch(31.25% 0.142 289.7)
XYZxyz(4.7792, 2.5980, 16.1660)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341872 #567218
analogous
#182972 #341872 #611872
triadic
#341872 #723418 #187234
tetradic
#341872 #721829 #567218 #187261
square
#341872 #721829 #567218 #187261
split-complementary
#341872 #726118 #297218
monochromatic
#0C0519 #1D0D3F #341872 #4B23A5 #6331D4

Accessibility & contrast

On white

13.82
#341872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341872
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341872#FFFFFF#000000##FFFFFF
##3418721.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#1D3144
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341872;
/* rgb */ color: rgb(52, 24, 114);
/* oklch */ color: oklch(31.3% 0.142 289.7);
Tailwind
colors: {
  custom: {
    50: '#73589b',
    500: '#341872',
    950: '#000000',
  },
}
SCSS
$custom: #341872;
$custom-light: #73589b;
$custom-dark: #000000;
JSON
{
  "hex": "#341872",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 258.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31254,
    "c": 0.14246,
    "h": 289.7
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#341872
secondary
#87A73E
accent
#E840B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341872

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

Preview Lab → · Contrast checker → · Palette generator →

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