#2B122F#2B122F

#2B122F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.4% C 0.063 H 321.9°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#2B122F
RGBrgb(43, 18, 47)
HSLhsl(292, 45%, 13%)
HSVhsv(292, 62%, 18%)
CMYKcmyk(8.5%, 61.7%, 0%, 81.6%)
CIE-LABlab(10.19, 18.50, -14.01)
CIE-LCHlch(10.19, 23.21, 322.87°)
OKLaboklab(23.35% 0.0495 -0.0387)
OKLCHoklch(23.35% 0.063 321.9)
XYZxyz(1.7256, 1.1515, 2.8201)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B122F #162F12
analogous
#1C122F #2B122F #2F1224
triadic
#2B122F #2F2B12 #122F2B
tetradic
#2B122F #2F1C12 #162F12 #12242F
square
#2B122F #2F1C12 #162F12 #12242F
split-complementary
#2B122F #242F12 #122F1C
monochromatic
#140816 #140816 #2B122F #53235B #7C3488

Accessibility & contrast

On white

17.07
#2B122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2B122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B122F
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B122F#FFFFFF#000000##FFFFFF
##2B122F1.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#151D2E
Tritanopia (blue-blind)
#2C161E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2b122f;
/* rgb */ color: rgb(43, 18, 47);
/* oklch */ color: oklch(23.4% 0.063 321.9);
Tailwind
colors: {
  custom: {
    50: '#655167',
    500: '#2b122f',
    950: '#000000',
  },
}
SCSS
$custom: #2b122f;
$custom-light: #655167;
$custom-dark: #000000;
JSON
{
  "hex": "#2b122f",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 291.724,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23352,
    "c": 0.06284,
    "h": 321.9
  },
  "luminance": 0.01151
}

Semantic roles & 50–950 ramp

primary
#2B122F
secondary
#3D6736
accent
#D45365
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2B122F

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

Preview Lab → · Contrast checker → · Palette generator →

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