#2D1140#2D1140

#2D1140 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.088 H 308.7°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2D1140
RGBrgb(45, 17, 64)
HSLhsl(276, 58%, 16%)
HSVhsv(276, 73%, 25%)
CMYKcmyk(29.7%, 73.4%, 0%, 74.9%)
CIE-LABlab(11.48, 24.23, -24.20)
CIE-LCHlch(11.48, 34.24, 315.04°)
OKLaboklab(24.74% 0.0549 -0.0684)
OKLCHoklch(24.74% 0.088 308.7)
XYZxyz(2.2079, 1.3290, 4.9897)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1140 #244011
analogous
#151140 #2D1140 #40113B
triadic
#2D1140 #402D11 #11402D
tetradic
#2D1140 #401511 #244011 #113B40
square
#2D1140 #401511 #244011 #113B40
split-complementary
#2D1140 #3B4011 #114015
monochromatic
#110618 #110618 #2D1140 #4F1E70 #712BA1

Accessibility & contrast

On white

16.59
#2D1140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2D1140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1140
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1140#FFFFFF#000000##FFFFFF
##2D11401.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#2A1B26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d1140;
/* rgb */ color: rgb(45, 17, 64);
/* oklch */ color: oklch(24.7% 0.088 308.7);
Tailwind
colors: {
  custom: {
    50: '#685175',
    500: '#2d1140',
    950: '#000000',
  },
}
SCSS
$custom: #2d1140;
$custom-light: #685175;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1140",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 275.745,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2474,
    "c": 0.08765,
    "h": 308.7
  },
  "luminance": 0.01329
}

Semantic roles & 50–950 ramp

primary
#2D1140
secondary
#507933
accent
#E14785
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1140

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

Preview Lab → · Contrast checker → · Palette generator →

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