#2A022F#2A022F

#2A022F is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.7% C 0.092 H 323.2°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#2A022F
RGBrgb(42, 2, 47)
HSLhsl(293, 92%, 10%)
HSVhsv(293, 96%, 18%)
CMYKcmyk(10.6%, 95.7%, 0%, 81.6%)
CIE-LABlab(6.69, 27.31, -19.58)
CIE-LCHlch(6.69, 33.60, 324.37°)
OKLaboklab(20.73% 0.0737 -0.0552)
OKLCHoklch(20.73% 0.092 323.2)
XYZxyz(1.4896, 0.7410, 2.7533)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A022F #072F02
analogous
#14022F #2A022F #2F021E
triadic
#2A022F #2F2A02 #022F2A
tetradic
#2A022F #2F1402 #072F02 #021E2F
square
#2A022F #2F1402 #072F02 #021E2F
split-complementary
#2A022F #1E2F02 #022F14
monochromatic
#1A011D #1A011D #2A022F #5E046A #9307A4

Accessibility & contrast

On white

18.29
#2A022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A022F
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A022F#FFFFFF#000000##FFFFFF
##2A022F1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#08162E
Tritanopia (blue-blind)
#2B0A18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a022f;
/* rgb */ color: rgb(42, 2, 47);
/* oklch */ color: oklch(20.7% 0.092 323.2);
Tailwind
colors: {
  custom: {
    50: '#664768',
    500: '#2a022f',
    950: '#000000',
  },
}
SCSS
$custom: #2a022f;
$custom-light: #664768;
$custom-dark: #000000;
JSON
{
  "hex": "#2a022f",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 293.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20731,
    "c": 0.09208,
    "h": 323.2
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#2A022F
secondary
#237419
accent
#FF2941
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A022F

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

Preview Lab → · Contrast checker → · Palette generator →

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