#2A0228#2A0228

#2A0228 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.086 H 330.4°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#2A0228
RGBrgb(42, 2, 40)
HSLhsl(303, 91%, 9%)
HSVhsv(303, 95%, 16%)
CMYKcmyk(0%, 95.2%, 4.8%, 83.5%)
CIE-LABlab(6.22, 25.58, -15.05)
CIE-LCHlch(6.22, 29.68, 329.53°)
OKLaboklab(20.18% 0.0745 -0.0423)
OKLCHoklch(20.18% 0.086 330.4)
XYZxyz(1.3596, 0.6890, 2.0685)
Luminance0.0069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0228 #022A04
analogous
#18022A #2A0228 #2A0214
triadic
#2A0228 #282A02 #02282A
tetradic
#2A0228 #2A1802 #022A04 #02142A
square
#2A0228 #2A1802 #022A04 #02142A
split-complementary
#2A0228 #142A02 #022A18
monochromatic
#1D011C #1D011C #2A0228 #640560 #9F0897

Accessibility & contrast

On white

18.46
#2A0228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2A0228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0228
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0228#FFFFFF#000000##FFFFFF
##2A02281.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001029
Deuteranopia (green-blind)
#0D1627
Tritanopia (blue-blind)
#2C0614
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a0228;
/* rgb */ color: rgb(42, 2, 40);
/* oklch */ color: oklch(20.2% 0.086 330.4);
Tailwind
colors: {
  custom: {
    50: '#654762',
    500: '#2a0228',
    950: '#000000',
  },
}
SCSS
$custom: #2a0228;
$custom-light: #654762;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0228",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 303,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20175,
    "c": 0.08568,
    "h": 330.4
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#2A0228
secondary
#196F1D
accent
#FF3429
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0228

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

Preview Lab → · Contrast checker → · Palette generator →

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