#2A0B38#2A0B38

#2A0B38 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.086 H 313.3°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#2A0B38
RGBrgb(42, 11, 56)
HSLhsl(281, 67%, 13%)
HSVhsv(281, 80%, 22%)
CMYKcmyk(25%, 80.4%, 0%, 78%)
CIE-LABlab(9.13, 24.65, -22.27)
CIE-LCHlch(9.13, 33.22, 317.90°)
OKLaboklab(22.75% 0.0591 -0.0628)
OKLCHoklch(22.75% 0.086 313.3)
XYZxyz(1.7882, 1.0172, 3.8427)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B38 #19380B
analogous
#130B38 #2A0B38 #380B2F
triadic
#2A0B38 #382A0B #0B382A
tetradic
#2A0B38 #38130B #19380B #0B2F38
square
#2A0B38 #38130B #19380B #0B2F38
split-complementary
#2A0B38 #2F380B #0B3813
monochromatic
#13051A #13051A #2A0B38 #50156B #771F9E

Accessibility & contrast

On white

17.45
#2A0B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0B38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0B38
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B38#FFFFFF#000000##FFFFFF
##2A0B381.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#081A37
Tritanopia (blue-blind)
#291420
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a0b38;
/* rgb */ color: rgb(42, 11, 56);
/* oklch */ color: oklch(22.8% 0.086 313.3);
Tailwind
colors: {
  custom: {
    50: '#664d6f',
    500: '#2a0b38',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b38;
$custom-light: #664d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b38",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 56
  },
  "hsl": {
    "h": 281.333,
    "s": 67.164,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2275,
    "c": 0.08622,
    "h": 313.3
  },
  "luminance": 0.01017
}

Semantic roles & 50–950 ramp

primary
#2A0B38
secondary
#41752A
accent
#EA3E73
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0B38

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

Preview Lab → · Contrast checker → · Palette generator →

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