#2D1341#2D1341

#2D1341 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.086 H 307.3°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1341
RGBrgb(45, 19, 65)
HSLhsl(274, 55%, 16%)
HSVhsv(274, 71%, 25%)
CMYKcmyk(30.8%, 70.8%, 0%, 74.5%)
CIE-LABlab(11.99, 23.31, -24.07)
CIE-LCHlch(11.99, 33.51, 314.08°)
OKLaboklab(25.14% 0.0519 -0.068)
OKLCHoklch(25.14% 0.086 307.3)
XYZxyz(2.2690, 1.4053, 5.1517)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1341 #274113
analogous
#161341 #2D1341 #41133E
triadic
#2D1341 #412D13 #13412D
tetradic
#2D1341 #411613 #274113 #133E41
square
#2D1341 #411613 #274113 #133E41
split-complementary
#2D1341 #3E4113 #134116
monochromatic
#100718 #100718 #2D1341 #4E2170 #6F2FA0

Accessibility & contrast

On white

16.39
#2D1341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D1341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1341
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1341#FFFFFF#000000##FFFFFF
##2D13411.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#2A1C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1341;
/* rgb */ color: rgb(45, 19, 65);
/* oklch */ color: oklch(25.1% 0.086 307.3);
Tailwind
colors: {
  custom: {
    50: '#685276',
    500: '#2d1341',
    950: '#000000',
  },
}
SCSS
$custom: #2d1341;
$custom-light: #685276;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1341",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 273.913,
    "s": 54.762,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25138,
    "c": 0.08556,
    "h": 307.3
  },
  "luminance": 0.01405
}

Semantic roles & 50–950 ramp

primary
#2D1341
secondary
#547A36
accent
#DE4A8A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1341

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

Preview Lab → · Contrast checker → · Palette generator →

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