#2A1836#2A1836

#2A1836 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.8% C 0.059 H 310.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1836
RGBrgb(42, 24, 54)
HSLhsl(276, 38%, 15%)
HSVhsv(276, 56%, 21%)
CMYKcmyk(22.2%, 55.6%, 0%, 78.8%)
CIE-LABlab(12.04, 15.97, -16.20)
CIE-LCHlch(12.04, 22.75, 314.58°)
OKLaboklab(24.83% 0.0385 -0.0452)
OKLCHoklch(24.83% 0.059 310.4)
XYZxyz(1.9472, 1.4119, 3.6593)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1836 #243618
analogous
#1B1836 #2A1836 #361833
triadic
#2A1836 #362A18 #18362A
tetradic
#2A1836 #361B18 #243618 #183336
square
#2A1836 #361B18 #243618 #183336
split-complementary
#2A1836 #333618 #18361B
monochromatic
#100915 #100915 #2A1836 #4B2B60 #6C3E8B

Accessibility & contrast

On white

16.38
#2A1836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1836
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1836#FFFFFF#000000##FFFFFF
##2A18361.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111F37
Deuteranopia (green-blind)
#162035
Tritanopia (blue-blind)
#291D24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1836;
/* rgb */ color: rgb(42, 24, 54);
/* oklch */ color: oklch(24.8% 0.059 310.4);
Tailwind
colors: {
  custom: {
    50: '#64556d',
    500: '#2a1836',
    950: '#000000',
  },
}
SCSS
$custom: #2a1836;
$custom-light: #64556d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1836",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 54
  },
  "hsl": {
    "h": 276,
    "s": 38.462,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24827,
    "c": 0.05931,
    "h": 310.4
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#2A1836
secondary
#506C3E
accent
#CE5988
background
#F6F4F6
surface
#EBE8EB
border
#C6C4C6
text
#050307
muted
#7A787A

Preview Lab

Preview with #2A1836

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

Preview Lab → · Contrast checker → · Palette generator →

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