#2A084A#2A084A

#2A084A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.111 H 301.5°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2A084A
RGBrgb(42, 8, 74)
HSLhsl(271, 80%, 16%)
HSVhsv(271, 89%, 29%)
CMYKcmyk(43.2%, 89.2%, 0%, 71%)
CIE-LABlab(10.26, 30.95, -33.21)
CIE-LCHlch(10.26, 45.40, 312.98°)
OKLaboklab(24.06% 0.0581 -0.0949)
OKLCHoklch(24.06% 0.111 301.5)
XYZxyz(2.2774, 1.1603, 6.5812)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A084A #284A08
analogous
#09084A #2A084A #4A0849
triadic
#2A084A #4A2A08 #084A2A
tetradic
#2A084A #4A0908 #284A08 #08494A
square
#2A084A #4A0908 #284A08 #08494A
split-complementary
#2A084A #494A08 #084A09
monochromatic
#10031C #10031C #2A084A #490E81 #6914B8

Accessibility & contrast

On white

17.05
#2A084A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A084A
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A084A#FFFFFF#000000##FFFFFF
##2A084A1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#231A29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a084a;
/* rgb */ color: rgb(42, 8, 74);
/* oklch */ color: oklch(24.1% 0.111 301.5);
Tailwind
colors: {
  custom: {
    50: '#684c7d',
    500: '#2a084a',
    950: '#000000',
  },
}
SCSS
$custom: #2a084a;
$custom-light: #684c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a084a",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 74
  },
  "hsl": {
    "h": 270.909,
    "s": 80.488,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24059,
    "c": 0.11126,
    "h": 301.5
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#2A084A
secondary
#558826
accent
#F73191
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #2A084A

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

Preview Lab → · Contrast checker → · Palette generator →

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