#2D123A#2D123A

#2D123A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.078 H 313.2°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#2D123A
RGBrgb(45, 18, 58)
HSLhsl(281, 53%, 15%)
HSVhsv(281, 69%, 23%)
CMYKcmyk(22.4%, 69%, 0%, 77.3%)
CIE-LABlab(11.25, 22.01, -20.29)
CIE-LCHlch(11.25, 29.94, 317.32°)
OKLaboklab(24.43% 0.0535 -0.0569)
OKLCHoklch(24.43% 0.078 313.2)
XYZxyz(2.0621, 1.2960, 4.1437)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D123A #1F3A12
analogous
#19123A #2D123A #3A1233
triadic
#2D123A #3A2D12 #123A2D
tetradic
#2D123A #3A1912 #1F3A12 #12333A
square
#2D123A #3A1912 #1F3A12 #12333A
split-complementary
#2D123A #333A12 #123A19
monochromatic
#120717 #120717 #2D123A #512069 #752F97

Accessibility & contrast

On white

16.68
#2D123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D123A
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D123A#FFFFFF#000000##FFFFFF
##2D123A1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3B
Deuteranopia (green-blind)
#101F39
Tritanopia (blue-blind)
#2C1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d123a;
/* rgb */ color: rgb(45, 18, 58);
/* oklch */ color: oklch(24.4% 0.078 313.2);
Tailwind
colors: {
  custom: {
    50: '#675170',
    500: '#2d123a',
    950: '#000000',
  },
}
SCSS
$custom: #2d123a;
$custom-light: #675170;
$custom-dark: #000000;
JSON
{
  "hex": "#2d123a",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 280.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2443,
    "c": 0.07815,
    "h": 313.2
  },
  "luminance": 0.01296
}

Semantic roles & 50–950 ramp

primary
#2D123A
secondary
#497335
accent
#DC4C7B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2D123A

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

Preview Lab → · Contrast checker → · Palette generator →

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