#2A0227#2A0227

#2A0227 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.1% C 0.085 H 331.5°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#2A0227
RGBrgb(42, 2, 39)
HSLhsl(305, 91%, 9%)
HSVhsv(305, 95%, 16%)
CMYKcmyk(0%, 95.2%, 7.1%, 83.5%)
CIE-LABlab(6.16, 25.34, -14.38)
CIE-LCHlch(6.16, 29.14, 330.43°)
OKLaboklab(20.1% 0.0745 -0.0405)
OKLCHoklch(20.1% 0.085 331.5)
XYZxyz(1.3428, 0.6823, 1.9800)
Luminance0.0068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0227 #022A05
analogous
#19022A #2A0227 #2A0213
triadic
#2A0227 #272A02 #02272A
tetradic
#2A0227 #2A1902 #022A05 #02132A
square
#2A0227 #2A1902 #022A05 #02132A
split-complementary
#2A0227 #132A02 #022A19
monochromatic
#1D011B #1D011B #2A0227 #64055D #9F0893

Accessibility & contrast

On white

18.48
#2A0227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0227
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0227#FFFFFF#000000##FFFFFF
##2A02271.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001028
Deuteranopia (green-blind)
#0E1626
Tritanopia (blue-blind)
#2C0613
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a0227;
/* rgb */ color: rgb(42, 2, 39);
/* oklch */ color: oklch(20.1% 0.085 331.5);
Tailwind
colors: {
  custom: {
    50: '#654761',
    500: '#2a0227',
    950: '#000000',
  },
}
SCSS
$custom: #2a0227;
$custom-light: #654761;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0227",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 304.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20101,
    "c": 0.0848,
    "h": 331.5
  },
  "luminance": 0.00682
}

Semantic roles & 50–950 ramp

primary
#2A0227
secondary
#196F1F
accent
#FF3929
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0227

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

Preview Lab → · Contrast checker → · Palette generator →

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