#2A1342#2A1342

#2A1342 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.086 H 303.2°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2A1342
RGBrgb(42, 19, 66)
HSLhsl(269, 55%, 17%)
HSVhsv(269, 71%, 26%)
CMYKcmyk(36.4%, 71.2%, 0%, 74.1%)
CIE-LABlab(11.63, 22.77, -25.39)
CIE-LCHlch(11.63, 34.10, 311.89°)
OKLaboklab(24.8% 0.0471 -0.072)
OKLCHoklch(24.8% 0.086 303.2)
XYZxyz(2.1709, 1.3513, 5.2997)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1342 #2B4213
analogous
#131442 #2A1342 #421342
triadic
#2A1342 #422A13 #13422A
tetradic
#2A1342 #421314 #2B4213 #134242
square
#2A1342 #421314 #2B4213 #134242
split-complementary
#2A1342 #424213 #144213
monochromatic
#0F0718 #0F0718 #2A1342 #482172 #662EA1

Accessibility & contrast

On white

16.53
#2A1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A1342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1342
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1342#FFFFFF#000000##FFFFFF
##2A13421.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#251D28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1342;
/* rgb */ color: rgb(42, 19, 66);
/* oklch */ color: oklch(24.8% 0.086 303.2);
Tailwind
colors: {
  custom: {
    50: '#665277',
    500: '#2a1342',
    950: '#000000',
  },
}
SCSS
$custom: #2a1342;
$custom-light: #665277;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1342",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 269.362,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24803,
    "c": 0.086,
    "h": 303.2
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#2A1342
secondary
#597B36
accent
#DF4995
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1342

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

Preview Lab → · Contrast checker → · Palette generator →

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