#2A023A#2A023A

#2A023A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.103 H 313.6°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#2A023A
RGBrgb(42, 2, 58)
HSLhsl(283, 93%, 12%)
HSVhsv(283, 97%, 23%)
CMYKcmyk(27.6%, 96.6%, 0%, 77.3%)
CIE-LABlab(7.60, 30.06, -26.20)
CIE-LCHlch(7.60, 39.88, 318.93°)
OKLaboklab(21.72% 0.0708 -0.0743)
OKLCHoklch(21.72% 0.103 313.6)
XYZxyz(1.7401, 0.8412, 4.0729)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A023A #123A02
analogous
#0E023A #2A023A #3A022E
triadic
#2A023A #3A2A02 #023A2A
tetradic
#2A023A #3A0E02 #123A02 #022E3A
square
#2A023A #3A0E02 #123A02 #022E3A
split-complementary
#2A023A #2E3A02 #023A0E
monochromatic
#15011E #15011E #2A023A #550475 #8006B0

Accessibility & contrast

On white

17.98
#2A023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A023A
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A023A#FFFFFF#000000##FFFFFF
##2A023A1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.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: #2a023a;
/* rgb */ color: rgb(42, 2, 58);
/* oklch */ color: oklch(21.7% 0.103 313.6);
Tailwind
colors: {
  custom: {
    50: '#674871',
    500: '#2a023a',
    950: '#000000',
  },
}
SCSS
$custom: #2a023a;
$custom-light: #674871;
$custom-dark: #000000;
JSON
{
  "hex": "#2a023a",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 282.857,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21719,
    "c": 0.10263,
    "h": 313.6
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#2A023A
secondary
#377D1A
accent
#FF2966
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A023A

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

Preview Lab → · Contrast checker → · Palette generator →

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