#2A033A#2A033A

#2A033A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.101 H 313.4°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#2A033A
RGBrgb(42, 3, 58)
HSLhsl(283, 90%, 12%)
HSVhsv(283, 95%, 23%)
CMYKcmyk(27.6%, 94.8%, 0%, 77.3%)
CIE-LABlab(7.79, 29.49, -25.88)
CIE-LCHlch(7.79, 39.24, 318.73°)
OKLaboklab(21.86% 0.0694 -0.0733)
OKLCHoklch(21.86% 0.101 313.4)
XYZxyz(1.7510, 0.8629, 4.0765)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A033A #133A03
analogous
#0E033A #2A033A #3A032F
triadic
#2A033A #3A2A03 #033A2A
tetradic
#2A033A #3A0E03 #133A03 #032F3A
square
#2A033A #3A0E03 #133A03 #032F3A
split-complementary
#2A033A #2F3A03 #033A0E
monochromatic
#15021D #15021D #2A033A #540674 #7E09AE

Accessibility & contrast

On white

17.91
#2A033A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A033A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A033A
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A033A#FFFFFF#000000##FFFFFF
##2A033A1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a033a;
/* rgb */ color: rgb(42, 3, 58);
/* oklch */ color: oklch(21.9% 0.101 313.4);
Tailwind
colors: {
  custom: {
    50: '#664871',
    500: '#2a033a',
    950: '#000000',
  },
}
SCSS
$custom: #2a033a;
$custom-light: #664871;
$custom-dark: #000000;
JSON
{
  "hex": "#2a033a",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 58
  },
  "hsl": {
    "h": 282.545,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21859,
    "c": 0.10095,
    "h": 313.4
  },
  "luminance": 0.00863
}

Semantic roles & 50–950 ramp

primary
#2A033A
secondary
#387D1C
accent
#FF2967
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A033A

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

Preview Lab → · Contrast checker → · Palette generator →

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