#2B0A4A#2B0A4A

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

Color values

HEX#2B0A4A
RGBrgb(43, 10, 74)
HSLhsl(271, 76%, 16%)
HSVhsv(271, 86%, 29%)
CMYKcmyk(41.9%, 86.5%, 0%, 71%)
CIE-LABlab(10.74, 30.20, -32.42)
CIE-LCHlch(10.74, 44.31, 312.97°)
OKLaboklab(24.43% 0.0579 -0.0926)
OKLCHoklch(24.43% 0.109 302)
XYZxyz(2.3405, 1.2251, 6.5904)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0A4A #294A0A
analogous
#0B0A4A #2B0A4A #4A0A49
triadic
#2B0A4A #4A2B0A #0A4A2B
tetradic
#2B0A4A #4A0B0A #294A0A #0A494A
square
#2B0A4A #4A0B0A #294A0A #0A494A
split-complementary
#2B0A4A #494A0A #0A4A0B
monochromatic
#10041B #10041B #2B0A4A #4A1180 #6A19B6

Accessibility & contrast

On white

16.87
#2B0A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0A4A
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0A4A#FFFFFF#000000##FFFFFF
##2B0A4A1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b0a4a;
/* rgb */ color: rgb(43, 10, 74);
/* oklch */ color: oklch(24.4% 0.109 302.0);
Tailwind
colors: {
  custom: {
    50: '#684d7d',
    500: '#2b0a4a',
    950: '#000000',
  },
}
SCSS
$custom: #2b0a4a;
$custom-light: #684d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0a4a",
  "rgb": {
    "r": 43,
    "g": 10,
    "b": 74
  },
  "hsl": {
    "h": 270.938,
    "s": 76.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24427,
    "c": 0.10915,
    "h": 302
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#2B0A4A
secondary
#568729
accent
#F33591
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #2B0A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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