#2D1741#2D1741

#2D1741 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.8% C 0.078 H 305.8°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2D1741
RGBrgb(45, 23, 65)
HSLhsl(271, 48%, 17%)
HSVhsv(271, 65%, 25%)
CMYKcmyk(30.8%, 64.6%, 0%, 74.5%)
CIE-LABlab(12.94, 20.78, -22.56)
CIE-LCHlch(12.94, 30.67, 312.64°)
OKLaboklab(25.83% 0.0459 -0.0636)
OKLCHoklch(25.83% 0.078 305.8)
XYZxyz(2.3425, 1.5524, 5.1762)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1741 #2B4117
analogous
#181741 #2D1741 #411740
triadic
#2D1741 #412D17 #17412D
tetradic
#2D1741 #411817 #2B4117 #174041
square
#2D1741 #411817 #2B4117 #174041
split-complementary
#2D1741 #404117 #174118
monochromatic
#100817 #100817 #2D1741 #4C276E #6C379B

Accessibility & contrast

On white

16.03
#2D1741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1741
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1741#FFFFFF#000000##FFFFFF
##2D17411.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072142
Deuteranopia (green-blind)
#0F2240
Tritanopia (blue-blind)
#2A1F29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1741;
/* rgb */ color: rgb(45, 23, 65);
/* oklch */ color: oklch(25.8% 0.078 305.8);
Tailwind
colors: {
  custom: {
    50: '#685576',
    500: '#2d1741',
    950: '#000000',
  },
}
SCSS
$custom: #2d1741;
$custom-light: #685576;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1741",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 65
  },
  "hsl": {
    "h": 271.429,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25826,
    "c": 0.07841,
    "h": 305.8
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#2D1741
secondary
#58783C
accent
#D75091
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D1741

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

Preview Lab → · Contrast checker → · Palette generator →

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