#2A1A34#2A1A34

#2A1A34 is a dark, muted violet. Relative luminance 0.015; OKLCH L 25.1% C 0.052 H 311.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2A1A34
RGBrgb(42, 26, 52)
HSLhsl(277, 33%, 15%)
HSVhsv(277, 50%, 20%)
CMYKcmyk(19.2%, 50%, 0%, 79.6%)
CIE-LABlab(12.47, 14.01, -14.08)
CIE-LCHlch(12.47, 19.86, 314.85°)
OKLaboklab(25.12% 0.0344 -0.039)
OKLCHoklch(25.12% 0.052 311.4)
XYZxyz(1.9440, 1.4790, 3.4312)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A34 #24341A
analogous
#1D1A34 #2A1A34 #341A31
triadic
#2A1A34 #342A1A #1A342A
tetradic
#2A1A34 #341D1A #24341A #1A3134
square
#2A1A34 #341D1A #24341A #1A3134
split-complementary
#2A1A34 #31341A #1A341D
monochromatic
#100A14 #100A14 #2A1A34 #4B2E5D #6C4386

Accessibility & contrast

On white

16.21
#2A1A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A34
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A34#FFFFFF#000000##FFFFFF
##2A1A341.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152035
Deuteranopia (green-blind)
#192133
Tritanopia (blue-blind)
#291E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1a34;
/* rgb */ color: rgb(42, 26, 52);
/* oklch */ color: oklch(25.1% 0.052 311.4);
Tailwind
colors: {
  custom: {
    50: '#64566b',
    500: '#2a1a34',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a34;
$custom-light: #64566b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a34",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 52
  },
  "hsl": {
    "h": 276.923,
    "s": 33.333,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25115,
    "c": 0.05204,
    "h": 311.4
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#2A1A34
secondary
#506941
accent
#C95E88
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#050306
muted
#7A787A

Preview Lab

Preview with #2A1A34

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

Preview Lab → · Contrast checker → · Palette generator →

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