#2A0940#2A0940

#2A0940 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.098 H 307.6°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#2A0940
RGBrgb(42, 9, 64)
HSLhsl(276, 75%, 14%)
HSVhsv(276, 86%, 25%)
CMYKcmyk(34.4%, 85.9%, 0%, 74.9%)
CIE-LABlab(9.46, 27.77, -27.47)
CIE-LCHlch(9.46, 39.06, 315.30°)
OKLaboklab(23.2% 0.0601 -0.0781)
OKLCHoklch(23.2% 0.098 307.6)
XYZxyz(1.9777, 1.0578, 4.9495)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0940 #1F4009
analogous
#0F0940 #2A0940 #40093B
triadic
#2A0940 #402A09 #09402A
tetradic
#2A0940 #400F09 #1F4009 #093B40
square
#2A0940 #400F09 #1F4009 #093B40
split-complementary
#2A0940 #3B4009 #09400F
monochromatic
#12041B #12041B #2A0940 #4D1176 #7018AB

Accessibility & contrast

On white

17.33
#2A0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0940
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0940#FFFFFF#000000##FFFFFF
##2A09401.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#261724
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0940;
/* rgb */ color: rgb(42, 9, 64);
/* oklch */ color: oklch(23.2% 0.098 307.6);
Tailwind
colors: {
  custom: {
    50: '#674c75',
    500: '#2a0940',
    950: '#000000',
  },
}
SCSS
$custom: #2a0940;
$custom-light: #674c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0940",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 276,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23201,
    "c": 0.09849,
    "h": 307.6
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#2A0940
secondary
#4A7E27
accent
#F23681
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0940

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

Preview Lab → · Contrast checker → · Palette generator →

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