#2A0446#2A0446

#2A0446 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.112 H 304.8°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#2A0446
RGBrgb(42, 4, 70)
HSLhsl(275, 89%, 15%)
HSVhsv(275, 94%, 27%)
CMYKcmyk(40%, 94.3%, 0%, 72.5%)
CIE-LABlab(9.17, 31.90, -32.20)
CIE-LCHlch(9.17, 45.33, 314.73°)
OKLaboklab(23.18% 0.0638 -0.0919)
OKLCHoklch(23.18% 0.112 304.8)
XYZxyz(2.1035, 1.0213, 5.8795)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0446 #204604
analogous
#090446 #2A0446 #460441
triadic
#2A0446 #462A04 #04462A
tetradic
#2A0446 #460904 #204604 #044146
square
#2A0446 #460904 #204604 #044146
split-complementary
#2A0446 #414604 #044609
monochromatic
#11021D #11021D #2A0446 #4D0780 #6F0BBA

Accessibility & contrast

On white

17.44
#2A0446 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0446 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0446
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0446#FFFFFF#000000##FFFFFF
##2A04461.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#241726
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0446;
/* rgb */ color: rgb(42, 4, 70);
/* oklch */ color: oklch(23.2% 0.112 304.8);
Tailwind
colors: {
  custom: {
    50: '#684a7a',
    500: '#2a0446',
    950: '#000000',
  },
}
SCSS
$custom: #2a0446;
$custom-light: #684a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0446",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 70
  },
  "hsl": {
    "h": 274.545,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23176,
    "c": 0.11185,
    "h": 304.8
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#2A0446
secondary
#4B871F
accent
#FF2984
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0446

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

Preview Lab → · Contrast checker → · Palette generator →

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