#2A1339#2A1339

#2A1339 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.1% C 0.074 H 309.9°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#2A1339
RGBrgb(42, 19, 57)
HSLhsl(276, 50%, 15%)
HSVhsv(276, 67%, 22%)
CMYKcmyk(26.3%, 66.7%, 0%, 77.6%)
CIE-LABlab(10.95, 20.17, -20.09)
CIE-LCHlch(10.95, 28.47, 315.12°)
OKLaboklab(24.09% 0.0472 -0.0564)
OKLCHoklch(24.09% 0.074 309.9)
XYZxyz(1.9261, 1.2534, 4.0106)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1339 #223913
analogous
#171339 #2A1339 #391335
triadic
#2A1339 #392A13 #13392A
tetradic
#2A1339 #391713 #223913 #133539
square
#2A1339 #391713 #223913 #133539
split-complementary
#2A1339 #353913 #133917
monochromatic
#110817 #110817 #2A1339 #4C2267 #6E3295

Accessibility & contrast

On white

16.79
#2A1339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A1339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1339
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1339#FFFFFF#000000##FFFFFF
##2A13391.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C3A
Deuteranopia (green-blind)
#0F1E38
Tritanopia (blue-blind)
#281A23
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a1339;
/* rgb */ color: rgb(42, 19, 57);
/* oklch */ color: oklch(24.1% 0.074 309.9);
Tailwind
colors: {
  custom: {
    50: '#65526f',
    500: '#2a1339',
    950: '#000000',
  },
}
SCSS
$custom: #2a1339;
$custom-light: #65526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1339",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 57
  },
  "hsl": {
    "h": 276.316,
    "s": 50,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24086,
    "c": 0.07361,
    "h": 309.9
  },
  "luminance": 0.01253
}

Semantic roles & 50–950 ramp

primary
#2A1339
secondary
#4E7137
accent
#DA4E85
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A1339

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

Preview Lab → · Contrast checker → · Palette generator →

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