#2A0942#2A0942

#2A0942 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.101 H 306.2°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2A0942
RGBrgb(42, 9, 66)
HSLhsl(275, 76%, 15%)
HSVhsv(275, 86%, 26%)
CMYKcmyk(36.4%, 86.4%, 0%, 74.1%)
CIE-LABlab(9.65, 28.30, -28.59)
CIE-LCHlch(9.65, 40.23, 314.70°)
OKLaboklab(23.39% 0.0595 -0.0813)
OKLCHoklch(23.39% 0.101 306.2)
XYZxyz(2.0357, 1.0810, 5.2546)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0942 #214209
analogous
#0E0942 #2A0942 #42093E
triadic
#2A0942 #422A09 #09422A
tetradic
#2A0942 #420E09 #214209 #093E42
square
#2A0942 #420E09 #214209 #093E42
split-complementary
#2A0942 #3E4209 #09420E
monochromatic
#11041B #11041B #2A0942 #4C1078 #6F18AE

Accessibility & contrast

On white

17.27
#2A0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0942
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0942#FFFFFF#000000##FFFFFF
##2A09421.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#261725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0942;
/* rgb */ color: rgb(42, 9, 66);
/* oklch */ color: oklch(23.4% 0.101 306.2);
Tailwind
colors: {
  custom: {
    50: '#674c77',
    500: '#2a0942',
    950: '#000000',
  },
}
SCSS
$custom: #2a0942;
$custom-light: #674c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0942",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 274.737,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23389,
    "c": 0.10081,
    "h": 306.2
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#2A0942
secondary
#4C8027
accent
#F33585
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0942

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

Preview Lab → · Contrast checker → · Palette generator →

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