#2D113A#2D113A

#2D113A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.080 H 313.5°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2D113A
RGBrgb(45, 17, 58)
HSLhsl(281, 55%, 15%)
HSVhsv(281, 71%, 23%)
CMYKcmyk(22.4%, 70.7%, 0%, 77.3%)
CIE-LABlab(11.02, 22.61, -20.65)
CIE-LCHlch(11.02, 30.62, 317.60°)
OKLaboklab(24.27% 0.0551 -0.058)
OKLCHoklch(24.27% 0.08 313.5)
XYZxyz(2.0462, 1.2643, 4.1384)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D113A #1E3A11
analogous
#19113A #2D113A #3A1133
triadic
#2D113A #3A2D11 #113A2D
tetradic
#2D113A #3A1911 #1E3A11 #11333A
square
#2D113A #3A1911 #1E3A11 #11333A
split-complementary
#2D113A #333A11 #113A19
monochromatic
#120718 #120718 #2D113A #521F69 #762D99

Accessibility & contrast

On white

16.76
#2D113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D113A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D113A
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D113A#FFFFFF#000000##FFFFFF
##2D113A1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#0F1E39
Tritanopia (blue-blind)
#2C1823
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d113a;
/* rgb */ color: rgb(45, 17, 58);
/* oklch */ color: oklch(24.3% 0.080 313.5);
Tailwind
colors: {
  custom: {
    50: '#675170',
    500: '#2d113a',
    950: '#000000',
  },
}
SCSS
$custom: #2d113a;
$custom-light: #675170;
$custom-dark: #000000;
JSON
{
  "hex": "#2d113a",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 280.976,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24267,
    "c": 0.07997,
    "h": 313.5
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#2D113A
secondary
#487333
accent
#DE4A79
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2D113A

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

Preview Lab → · Contrast checker → · Palette generator →

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