#341772#341772

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

Color values

HEX#341772
RGBrgb(52, 23, 114)
HSLhsl(259, 66%, 27%)
HSVhsv(259, 80%, 45%)
CMYKcmyk(54.4%, 79.8%, 0%, 55.3%)
CIE-LABlab(18.18, 36.97, -46.96)
CIE-LCHlch(18.18, 59.77, 308.21°)
OKLaboklab(31.13% 0.0488 -0.135)
OKLCHoklch(31.13% 0.144 289.9)
XYZxyz(4.7590, 2.5576, 16.1592)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341772 #557217
analogous
#172872 #341772 #621772
triadic
#341772 #723417 #177234
tetradic
#341772 #721728 #557217 #177262
square
#341772 #721728 #557217 #177262
split-complementary
#341772 #726217 #287217
monochromatic
#0C0519 #1D0D3F #341772 #4B21A5 #642ED5

Accessibility & contrast

On white

13.89
#341772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#341772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341772
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341772#FFFFFF#000000##FFFFFF
##3417721.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#1D3044
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #341772;
/* rgb */ color: rgb(52, 23, 114);
/* oklch */ color: oklch(31.1% 0.144 289.9);
Tailwind
colors: {
  custom: {
    50: '#73589b',
    500: '#341772',
    950: '#000000',
  },
}
SCSS
$custom: #341772;
$custom-light: #73589b;
$custom-dark: #000000;
JSON
{
  "hex": "#341772",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 259.121,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31128,
    "c": 0.14354,
    "h": 289.9
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#341772
secondary
#86A83D
accent
#E93EB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341772

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

Preview Lab → · Contrast checker → · Palette generator →

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