#2A023B#2A023B

#2A023B is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.104 H 312.9°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#2A023B
RGBrgb(42, 2, 59)
HSLhsl(282, 93%, 12%)
HSVhsv(282, 97%, 23%)
CMYKcmyk(28.8%, 96.6%, 0%, 76.9%)
CIE-LABlab(7.69, 30.31, -26.77)
CIE-LCHlch(7.69, 40.44, 318.54°)
OKLaboklab(21.82% 0.0705 -0.0759)
OKLCHoklch(21.82% 0.104 312.9)
XYZxyz(1.7658, 0.8515, 4.2082)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A023B #133B02
analogous
#0D023B #2A023B #3B0230
triadic
#2A023B #3B2A02 #023B2A
tetradic
#2A023B #3B0D02 #133B02 #02303B
square
#2A023B #3B0D02 #133B02 #02303B
split-complementary
#2A023B #303B02 #023B0D
monochromatic
#15011E #15011E #2A023B #540476 #7E06B1

Accessibility & contrast

On white

17.95
#2A023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A023B
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A023B#FFFFFF#000000##FFFFFF
##2A023B1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a023b;
/* rgb */ color: rgb(42, 2, 59);
/* oklch */ color: oklch(21.8% 0.104 312.9);
Tailwind
colors: {
  custom: {
    50: '#674871',
    500: '#2a023b',
    950: '#000000',
  },
}
SCSS
$custom: #2a023b;
$custom-light: #674871;
$custom-dark: #000000;
JSON
{
  "hex": "#2a023b",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 282.105,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21815,
    "c": 0.10361,
    "h": 312.9
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#2A023B
secondary
#387E1A
accent
#FF2969
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A023B

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

Preview Lab → · Contrast checker → · Palette generator →

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