#2A0B4A#2A0B4A

#2A0B4A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.108 H 300.8°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2A0B4A
RGBrgb(42, 11, 74)
HSLhsl(270, 74%, 17%)
HSVhsv(270, 85%, 29%)
CMYKcmyk(43.2%, 85.1%, 0%, 71%)
CIE-LABlab(10.75, 29.54, -32.42)
CIE-LCHlch(10.75, 43.86, 312.34°)
OKLaboklab(24.4% 0.0552 -0.0926)
OKLCHoklch(24.4% 0.108 300.8)
XYZxyz(2.3102, 1.2260, 6.5922)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B4A #2B4A0B
analogous
#0B0B4A #2A0B4A #4A0B4A
triadic
#2A0B4A #4A2A0B #0B4A2A
tetradic
#2A0B4A #4A0B0B #2B4A0B #0B4A4A
square
#2A0B4A #4A0B0B #2B4A0B #0B4A4A
split-complementary
#2A0B4A #4A4A0B #0B4A0B
monochromatic
#0F041B #0F041B #2A0B4A #48137F #661BB5

Accessibility & contrast

On white

16.86
#2A0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B4A
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B4A#FFFFFF#000000##FFFFFF
##2A0B4A1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001D49
Tritanopia (blue-blind)
#231C2A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0b4a;
/* rgb */ color: rgb(42, 11, 74);
/* oklch */ color: oklch(24.4% 0.108 300.8);
Tailwind
colors: {
  custom: {
    50: '#684e7d',
    500: '#2a0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b4a;
$custom-light: #684e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b4a",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 269.524,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24398,
    "c": 0.10779,
    "h": 300.8
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#2A0B4A
secondary
#59862B
accent
#F13795
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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