#2A0B47#2A0B47

#2A0B47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.104 H 302.5°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#2A0B47
RGBrgb(42, 11, 71)
HSLhsl(271, 73%, 16%)
HSVhsv(271, 85%, 28%)
CMYKcmyk(40.8%, 84.5%, 0%, 72.2%)
CIE-LABlab(10.46, 28.70, -30.80)
CIE-LCHlch(10.46, 42.10, 312.99°)
OKLaboklab(24.1% 0.0561 -0.0878)
OKLCHoklch(24.1% 0.104 302.5)
XYZxyz(2.2116, 1.1865, 6.0725)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B47 #28470B
analogous
#0C0B47 #2A0B47 #470B46
triadic
#2A0B47 #472A0B #0B472A
tetradic
#2A0B47 #470C0B #28470B #0B4647
square
#2A0B47 #470C0B #28470B #0B4647
split-complementary
#2A0B47 #46470B #0B470C
monochromatic
#10041A #10041A #2A0B47 #49137C #691BB1

Accessibility & contrast

On white

16.97
#2A0B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B47
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B47#FFFFFF#000000##FFFFFF
##2A0B471.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#241A28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0b47;
/* rgb */ color: rgb(42, 11, 71);
/* oklch */ color: oklch(24.1% 0.104 302.5);
Tailwind
colors: {
  custom: {
    50: '#674e7b',
    500: '#2a0b47',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b47;
$custom-light: #674e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b47",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 271,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24104,
    "c": 0.1042,
    "h": 302.5
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#2A0B47
secondary
#55832A
accent
#F03891
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0B47

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

Preview Lab → · Contrast checker → · Palette generator →

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