#2A0840#2A0840

#2A0840 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.100 H 307.8°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#2A0840
RGBrgb(42, 8, 64)
HSLhsl(276, 78%, 14%)
HSVhsv(276, 88%, 25%)
CMYKcmyk(34.4%, 87.5%, 0%, 74.9%)
CIE-LABlab(9.29, 28.27, -27.76)
CIE-LCHlch(9.29, 39.62, 315.52°)
OKLaboklab(23.08% 0.0612 -0.0789)
OKLCHoklch(23.08% 0.1 307.8)
XYZxyz(1.9669, 1.0361, 4.9459)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0840 #1E4008
analogous
#0E0840 #2A0840 #40083A
triadic
#2A0840 #402A08 #08402A
tetradic
#2A0840 #400E08 #1E4008 #083A40
square
#2A0840 #400E08 #1E4008 #083A40
split-complementary
#2A0840 #3A4008 #08400E
monochromatic
#12031B #12031B #2A0840 #4E0F76 #7116AD

Accessibility & contrast

On white

17.40
#2A0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0840
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0840#FFFFFF#000000##FFFFFF
##2A08401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0840;
/* rgb */ color: rgb(42, 8, 64);
/* oklch */ color: oklch(23.1% 0.100 307.8);
Tailwind
colors: {
  custom: {
    50: '#674c75',
    500: '#2a0840',
    950: '#000000',
  },
}
SCSS
$custom: #2a0840;
$custom-light: #674c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0840",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 276.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23078,
    "c": 0.09985,
    "h": 307.8
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#2A0840
secondary
#487E25
accent
#F4347F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0840

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

Preview Lab → · Contrast checker → · Palette generator →

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