#2A0439#2A0439

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

Color values

HEX#2A0439
RGBrgb(42, 4, 57)
HSLhsl(283, 87%, 12%)
HSVhsv(283, 93%, 22%)
CMYKcmyk(26.3%, 93%, 0%, 77.6%)
CIE-LABlab(7.90, 28.68, -24.99)
CIE-LCHlch(7.90, 38.04, 318.94°)
OKLaboklab(21.9% 0.0683 -0.0707)
OKLCHoklch(21.9% 0.098 314)
XYZxyz(1.7367, 0.8745, 3.9474)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0439 #133904
analogous
#100439 #2A0439 #39042E
triadic
#2A0439 #392A04 #04392A
tetradic
#2A0439 #391004 #133904 #042E39
square
#2A0439 #391004 #133904 #042E39
split-complementary
#2A0439 #2E3904 #043910
monochromatic
#15021D #15021D #2A0439 #540872 #7E0CAB

Accessibility & contrast

On white

17.88
#2A0439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0439
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0439#FFFFFF#000000##FFFFFF
##2A04391.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0439;
/* rgb */ color: rgb(42, 4, 57);
/* oklch */ color: oklch(21.9% 0.098 314.0);
Tailwind
colors: {
  custom: {
    50: '#664970',
    500: '#2a0439',
    950: '#000000',
  },
}
SCSS
$custom: #2a0439;
$custom-light: #664970;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0439",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 283.019,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21904,
    "c": 0.09827,
    "h": 314
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#2A0439
secondary
#387B1E
accent
#FD2B66
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0439

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

Preview Lab → · Contrast checker → · Palette generator →

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