#2A0946#2A0946

#2A0946 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.105 H 303.6°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#2A0946
RGBrgb(42, 9, 70)
HSLhsl(272, 77%, 15%)
HSVhsv(272, 87%, 27%)
CMYKcmyk(40%, 87.1%, 0%, 72.5%)
CIE-LABlab(10.03, 29.38, -30.79)
CIE-LCHlch(10.03, 42.56, 313.66°)
OKLaboklab(23.77% 0.0584 -0.0878)
OKLCHoklch(23.77% 0.105 303.6)
XYZxyz(2.1578, 1.1298, 5.8976)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0946 #254609
analogous
#0B0946 #2A0946 #460943
triadic
#2A0946 #462A09 #09462A
tetradic
#2A0946 #460B09 #254609 #094346
square
#2A0946 #460B09 #254609 #094346
split-complementary
#2A0946 #434609 #09460B
monochromatic
#10031B #10031B #2A0946 #4B107C #6B17B2

Accessibility & contrast

On white

17.13
#2A0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0946
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0946#FFFFFF#000000##FFFFFF
##2A09461.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#241927
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0946;
/* rgb */ color: rgb(42, 9, 70);
/* oklch */ color: oklch(23.8% 0.105 303.6);
Tailwind
colors: {
  custom: {
    50: '#674d7a',
    500: '#2a0946',
    950: '#000000',
  },
}
SCSS
$custom: #2a0946;
$custom-light: #674d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0946",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 272.459,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23774,
    "c": 0.10546,
    "h": 303.6
  },
  "luminance": 0.0113
}

Semantic roles & 50–950 ramp

primary
#2A0946
secondary
#528427
accent
#F4348C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0946

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

Preview Lab → · Contrast checker → · Palette generator →

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