#341A72#341A72

#341A72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 289.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#341A72
RGBrgb(52, 26, 114)
HSLhsl(258, 63%, 27%)
HSVhsv(258, 77%, 45%)
CMYKcmyk(54.4%, 77.2%, 0%, 55.3%)
CIE-LABlab(18.73, 35.40, -46.06)
CIE-LCHlch(18.73, 58.09, 307.55°)
OKLaboklab(31.52% 0.0462 -0.1323)
OKLCHoklch(31.52% 0.14 289.3)
XYZxyz(4.8219, 2.6835, 16.1802)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A72 #58721A
analogous
#1A2C72 #341A72 #601A72
triadic
#341A72 #72341A #1A7234
tetradic
#341A72 #721A2C #58721A #1A7260
square
#341A72 #721A2C #58721A #1A7260
split-complementary
#341A72 #72601A #2C721A
monochromatic
#0B0619 #1D0F40 #341A72 #4B25A4 #6335D1

Accessibility & contrast

On white

13.66
#341A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A72
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A72#FFFFFF#000000##FFFFFF
##341A721.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#1D3244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341a72;
/* rgb */ color: rgb(52, 26, 114);
/* oklch */ color: oklch(31.5% 0.140 289.3);
Tailwind
colors: {
  custom: {
    50: '#73599b',
    500: '#341a72',
    950: '#000000',
  },
}
SCSS
$custom: #341a72;
$custom-light: #73599b;
$custom-dark: #000000;
JSON
{
  "hex": "#341a72",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 257.727,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31516,
    "c": 0.1402,
    "h": 289.3
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#341A72
secondary
#89A741
accent
#E642B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341A72

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

Preview Lab → · Contrast checker → · Palette generator →

#341A72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva