#2A1641#2A1641

#2A1641 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.079 H 302.5°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1641
RGBrgb(42, 22, 65)
HSLhsl(268, 49%, 17%)
HSVhsv(268, 66%, 25%)
CMYKcmyk(35.4%, 66.2%, 0%, 74.5%)
CIE-LABlab(12.27, 20.54, -23.65)
CIE-LCHlch(12.27, 31.32, 310.98°)
OKLaboklab(25.25% 0.0427 -0.0669)
OKLCHoklch(25.25% 0.079 302.5)
XYZxyz(2.1957, 1.4477, 5.1638)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1641 #2D4116
analogous
#161841 #2A1641 #401641
triadic
#2A1641 #412A16 #16412A
tetradic
#2A1641 #411618 #2D4116 #164140
square
#2A1641 #411618 #2D4116 #164140
split-complementary
#2A1641 #414016 #184116
monochromatic
#0F0817 #0F0817 #2A1641 #48256F #65359C

Accessibility & contrast

On white

16.28
#2A1641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1641
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1641#FFFFFF#000000##FFFFFF
##2A16411.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042042
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#261F29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1641;
/* rgb */ color: rgb(42, 22, 65);
/* oklch */ color: oklch(25.2% 0.079 302.5);
Tailwind
colors: {
  custom: {
    50: '#655476',
    500: '#2a1641',
    950: '#000000',
  },
}
SCSS
$custom: #2a1641;
$custom-light: #655476;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1641",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 65
  },
  "hsl": {
    "h": 267.907,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25245,
    "c": 0.07935,
    "h": 302.5
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#2A1641
secondary
#5C783A
accent
#D94F99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A1641

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

Preview Lab → · Contrast checker → · Palette generator →

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