#2D1142#2D1142

#2D1142 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.090 H 307.3°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2D1142
RGBrgb(45, 17, 66)
HSLhsl(274, 59%, 16%)
HSVhsv(274, 74%, 26%)
CMYKcmyk(31.8%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.64, 24.78, -25.35)
CIE-LCHlch(11.64, 35.45, 314.35°)
OKLaboklab(24.91% 0.0547 -0.0718)
OKLCHoklch(24.91% 0.09 307.3)
XYZxyz(2.2658, 1.3522, 5.2948)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1142 #264211
analogous
#151142 #2D1142 #42113F
triadic
#2D1142 #422D11 #11422D
tetradic
#2D1142 #421511 #264211 #113F42
square
#2D1142 #421511 #264211 #113F42
split-complementary
#2D1142 #3F4211 #114215
monochromatic
#110618 #110618 #2D1142 #4E1E73 #6F2AA3

Accessibility & contrast

On white

16.53
#2D1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1142
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1142#FFFFFF#000000##FFFFFF
##2D11421.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#2A1B27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1142;
/* rgb */ color: rgb(45, 17, 66);
/* oklch */ color: oklch(24.9% 0.090 307.3);
Tailwind
colors: {
  custom: {
    50: '#685177',
    500: '#2d1142',
    950: '#000000',
  },
}
SCSS
$custom: #2d1142;
$custom-light: #685177;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1142",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 274.286,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24905,
    "c": 0.09021,
    "h": 307.3
  },
  "luminance": 0.01352
}

Semantic roles & 50–950 ramp

primary
#2D1142
secondary
#527C33
accent
#E24689
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1142

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

Preview Lab → · Contrast checker → · Palette generator →

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