#2A1834#2A1834

#2A1834 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.7% C 0.056 H 312.5°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2A1834
RGBrgb(42, 24, 52)
HSLhsl(279, 37%, 15%)
HSVhsv(279, 54%, 20%)
CMYKcmyk(19.2%, 53.8%, 0%, 79.6%)
CIE-LABlab(11.91, 15.41, -14.96)
CIE-LCHlch(11.91, 21.47, 315.85°)
OKLaboklab(24.7% 0.0381 -0.0415)
OKLCHoklch(24.7% 0.056 312.5)
XYZxyz(1.9012, 1.3935, 3.4170)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1834 #223418
analogous
#1C1834 #2A1834 #341830
triadic
#2A1834 #342A18 #18342A
tetradic
#2A1834 #341C18 #223418 #183034
square
#2A1834 #341C18 #223418 #183034
split-complementary
#2A1834 #303418 #18341C
monochromatic
#110A15 #110A15 #2A1834 #4C2B5E #6E3F88

Accessibility & contrast

On white

16.42
#2A1834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1834
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1834#FFFFFF#000000##FFFFFF
##2A18341.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121E35
Deuteranopia (green-blind)
#172033
Tritanopia (blue-blind)
#291C23
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1834;
/* rgb */ color: rgb(42, 24, 52);
/* oklch */ color: oklch(24.7% 0.056 312.5);
Tailwind
colors: {
  custom: {
    50: '#64556b',
    500: '#2a1834',
    950: '#000000',
  },
}
SCSS
$custom: #2a1834;
$custom-light: #64556b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1834",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 52
  },
  "hsl": {
    "h": 278.571,
    "s": 36.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24695,
    "c": 0.05636,
    "h": 312.5
  },
  "luminance": 0.01393
}

Semantic roles & 50–950 ramp

primary
#2A1834
secondary
#4E6A3E
accent
#CD5B84
background
#F6F4F6
surface
#EBE8EB
border
#C6C4C6
text
#050306
muted
#7A787A

Preview Lab

Preview with #2A1834

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

Preview Lab → · Contrast checker → · Palette generator →

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