#2A1E36#2A1E36

#2A1E36 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.1% C 0.046 H 306.4°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2A1E36
RGBrgb(42, 30, 54)
HSLhsl(270, 29%, 16%)
HSVhsv(270, 44%, 21%)
CMYKcmyk(22.2%, 44.4%, 0%, 78.8%)
CIE-LABlab(13.75, 11.72, -13.52)
CIE-LCHlch(13.75, 17.89, 310.94°)
OKLaboklab(26.12% 0.0276 -0.0374)
OKLCHoklch(26.12% 0.047 306.4)
XYZxyz(2.0848, 1.6871, 3.7051)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1E36 #2A361E
analogous
#1E1E36 #2A1E36 #361E36
triadic
#2A1E36 #362A1E #1E362A
tetradic
#2A1E36 #361E1E #2A361E #1E3636
square
#2A1E36 #361E1E #2A361E #1E3636
split-complementary
#2A1E36 #36361E #1E361E
monochromatic
#0F0B14 #0F0B14 #2A1E36 #49345D #674A85

Accessibility & contrast

On white

15.70
#2A1E36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1E36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1E36
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1E36#FFFFFF#000000##FFFFFF
##2A1E361.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192337
Deuteranopia (green-blind)
#1B2335
Tritanopia (blue-blind)
#282227
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1e36;
/* rgb */ color: rgb(42, 30, 54);
/* oklch */ color: oklch(26.1% 0.046 306.4);
Tailwind
colors: {
  custom: {
    50: '#645a6d',
    500: '#2a1e36',
    950: '#000000',
  },
}
SCSS
$custom: #2a1e36;
$custom-light: #645a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1e36",
  "rgb": {
    "r": 42,
    "g": 30,
    "b": 54
  },
  "hsl": {
    "h": 270,
    "s": 28.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26116,
    "c": 0.0465,
    "h": 306.4
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#2A1E36
secondary
#586946
accent
#C56394
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#050307
muted
#7A787A

Preview Lab

Preview with #2A1E36

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

Preview Lab → · Contrast checker → · Palette generator →

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