#2A0A47#2A0A47

#2A0A47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.105 H 302.8°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#2A0A47
RGBrgb(42, 10, 71)
HSLhsl(271, 75%, 16%)
HSVhsv(271, 86%, 28%)
CMYKcmyk(40.8%, 85.9%, 0%, 72.2%)
CIE-LABlab(10.29, 29.18, -31.07)
CIE-LCHlch(10.29, 42.62, 313.20°)
OKLaboklab(23.99% 0.0571 -0.0886)
OKLCHoklch(23.99% 0.105 302.8)
XYZxyz(2.2004, 1.1643, 6.0688)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A47 #27470A
analogous
#0B0A47 #2A0A47 #470A45
triadic
#2A0A47 #472A0A #0A472A
tetradic
#2A0A47 #470B0A #27470A #0A4547
square
#2A0A47 #470B0A #27470A #0A4547
split-complementary
#2A0A47 #45470A #0A470B
monochromatic
#10041B #10041B #2A0A47 #4A127D #6919B2

Accessibility & contrast

On white

17.03
#2A0A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A47
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A47#FFFFFF#000000##FFFFFF
##2A0A471.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.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: #2a0a47;
/* rgb */ color: rgb(42, 10, 71);
/* oklch */ color: oklch(24.0% 0.105 302.8);
Tailwind
colors: {
  custom: {
    50: '#674d7b',
    500: '#2a0a47',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a47;
$custom-light: #674d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a47",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 271.475,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23987,
    "c": 0.10541,
    "h": 302.8
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#2A0A47
secondary
#548429
accent
#F2368F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0A47

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

Preview Lab → · Contrast checker → · Palette generator →

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