#2A043A#2A043A

#2A043A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.0% C 0.099 H 313.2°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#2A043A
RGBrgb(42, 4, 58)
HSLhsl(282, 87%, 12%)
HSVhsv(282, 93%, 23%)
CMYKcmyk(27.6%, 93.1%, 0%, 77.3%)
CIE-LABlab(7.99, 28.92, -25.56)
CIE-LCHlch(7.99, 38.60, 318.52°)
OKLaboklab(22% 0.068 -0.0724)
OKLCHoklch(22% 0.099 313.2)
XYZxyz(1.7618, 0.8846, 4.0801)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A043A #143A04
analogous
#0F043A #2A043A #3A042F
triadic
#2A043A #3A2A04 #043A2A
tetradic
#2A043A #3A0F04 #143A04 #042F3A
square
#2A043A #3A0F04 #143A04 #042F3A
split-complementary
#2A043A #2F3A04 #043A0F
monochromatic
#15021D #15021D #2A043A #530873 #7D0CAD

Accessibility & contrast

On white

17.84
#2A043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A043A
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A043A#FFFFFF#000000##FFFFFF
##2A043A1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#28111F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a043a;
/* rgb */ color: rgb(42, 4, 58);
/* oklch */ color: oklch(22.0% 0.099 313.2);
Tailwind
colors: {
  custom: {
    50: '#664971',
    500: '#2a043a',
    950: '#000000',
  },
}
SCSS
$custom: #2a043a;
$custom-light: #664971;
$custom-dark: #000000;
JSON
{
  "hex": "#2a043a",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 282.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21997,
    "c": 0.09931,
    "h": 313.2
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#2A043A
secondary
#3A7C1E
accent
#FD2B69
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A043A

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

Preview Lab → · Contrast checker → · Palette generator →

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