#2A1346#2A1346

#2A1346 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.091 H 300.7°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2A1346
RGBrgb(42, 19, 70)
HSLhsl(267, 57%, 17%)
HSVhsv(267, 73%, 27%)
CMYKcmyk(40%, 72.9%, 0%, 72.5%)
CIE-LABlab(11.96, 23.96, -27.66)
CIE-LCHlch(11.96, 36.59, 310.90°)
OKLaboklab(25.15% 0.0467 -0.0787)
OKLCHoklch(25.15% 0.091 300.7)
XYZxyz(2.2929, 1.4002, 5.9426)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1346 #2F4613
analogous
#131646 #2A1346 #441346
triadic
#2A1346 #462A13 #13462A
tetradic
#2A1346 #461316 #2F4613 #134644
square
#2A1346 #461316 #2F4613 #134644
split-complementary
#2A1346 #464413 #164613
monochromatic
#0E0718 #0E0718 #2A1346 #472076 #642DA6

Accessibility & contrast

On white

16.41
#2A1346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A1346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1346
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1346#FFFFFF#000000##FFFFFF
##2A13461.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#001F45
Tritanopia (blue-blind)
#241E2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1346;
/* rgb */ color: rgb(42, 19, 70);
/* oklch */ color: oklch(25.1% 0.091 300.7);
Tailwind
colors: {
  custom: {
    50: '#66527a',
    500: '#2a1346',
    950: '#000000',
  },
}
SCSS
$custom: #2a1346;
$custom-light: #66527a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1346",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 267.059,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25145,
    "c": 0.09147,
    "h": 300.7
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#2A1346
secondary
#5E7F36
accent
#E1479B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1346

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

Preview Lab → · Contrast checker → · Palette generator →

#2A1346 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva