#2A0A4A#2A0A4A

#2A0A4A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.109 H 301.0°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#2A0A4A
RGBrgb(42, 10, 74)
HSLhsl(270, 76%, 16%)
HSVhsv(270, 86%, 29%)
CMYKcmyk(43.2%, 86.5%, 0%, 71%)
CIE-LABlab(10.58, 30.01, -32.68)
CIE-LCHlch(10.58, 44.37, 312.56°)
OKLaboklab(24.28% 0.0561 -0.0934)
OKLCHoklch(24.28% 0.109 301)
XYZxyz(2.2991, 1.2037, 6.5885)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A4A #2A4A0A
analogous
#0A0A4A #2A0A4A #4A0A4A
triadic
#2A0A4A #4A2A0A #0A4A2A
tetradic
#2A0A4A #4A0A0A #2A4A0A #0A4A4A
square
#2A0A4A #4A0A0A #2A4A0A #0A4A4A
split-complementary
#2A0A4A #4A4A0A #0A4A0A
monochromatic
#0F041B #0F041B #2A0A4A #491180 #6719B6

Accessibility & contrast

On white

16.92
#2A0A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A4A
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A4A#FFFFFF#000000##FFFFFF
##2A0A4A1.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#231B2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0a4a;
/* rgb */ color: rgb(42, 10, 74);
/* oklch */ color: oklch(24.3% 0.109 301.0);
Tailwind
colors: {
  custom: {
    50: '#684d7d',
    500: '#2a0a4a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a4a;
$custom-light: #684d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a4a",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 270,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24284,
    "c": 0.10895,
    "h": 301
  },
  "luminance": 0.01204
}

Semantic roles & 50–950 ramp

primary
#2A0A4A
secondary
#588729
accent
#F33594
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #2A0A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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