#2D122F#2D122F

#2D122F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.7% C 0.064 H 324.7°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#2D122F
RGBrgb(45, 18, 47)
HSLhsl(296, 45%, 13%)
HSVhsv(296, 62%, 18%)
CMYKcmyk(4.3%, 61.7%, 0%, 81.6%)
CIE-LABlab(10.53, 19.22, -13.47)
CIE-LCHlch(10.53, 23.47, 324.98°)
OKLaboklab(23.67% 0.0525 -0.0371)
OKLCHoklch(23.67% 0.064 324.7)
XYZxyz(1.8115, 1.1958, 2.8242)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D122F #142F12
analogous
#1E122F #2D122F #2F1222
triadic
#2D122F #2F2D12 #122F2D
tetradic
#2D122F #2F1E12 #142F12 #12222F
square
#2D122F #2F1E12 #142F12 #12222F
split-complementary
#2D122F #222F12 #122F1E
monochromatic
#150816 #150816 #2D122F #57235B #823488

Accessibility & contrast

On white

16.95
#2D122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2D122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D122F
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D122F#FFFFFF#000000##FFFFFF
##2D122F1.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A30
Deuteranopia (green-blind)
#171E2E
Tritanopia (blue-blind)
#2E161E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d122f;
/* rgb */ color: rgb(45, 18, 47);
/* oklch */ color: oklch(23.7% 0.064 324.7);
Tailwind
colors: {
  custom: {
    50: '#675167',
    500: '#2d122f',
    950: '#000000',
  },
}
SCSS
$custom: #2d122f;
$custom-light: #675167;
$custom-dark: #000000;
JSON
{
  "hex": "#2d122f",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 295.862,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23667,
    "c": 0.06428,
    "h": 324.7
  },
  "luminance": 0.01196
}

Semantic roles & 50–950 ramp

primary
#2D122F
secondary
#396736
accent
#D4535C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2D122F

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

Preview Lab → · Contrast checker → · Palette generator →

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