#2D1241#2D1241

#2D1241 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.087 H 307.7°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2D1241
RGBrgb(45, 18, 65)
HSLhsl(274, 57%, 16%)
HSVhsv(274, 72%, 25%)
CMYKcmyk(30.8%, 72.3%, 0%, 74.5%)
CIE-LABlab(11.77, 23.91, -24.43)
CIE-LCHlch(11.77, 34.19, 314.39°)
OKLaboklab(24.98% 0.0534 -0.0691)
OKLCHoklch(24.98% 0.087 307.7)
XYZxyz(2.2524, 1.3722, 5.1462)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1241 #264112
analogous
#161241 #2D1241 #41123E
triadic
#2D1241 #412D12 #12412D
tetradic
#2D1241 #411612 #264112 #123E41
square
#2D1241 #411612 #264112 #123E41
split-complementary
#2D1241 #3E4112 #124116
monochromatic
#110718 #110718 #2D1241 #4E1F71 #6F2DA1

Accessibility & contrast

On white

16.48
#2D1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1241
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1241#FFFFFF#000000##FFFFFF
##2D12411.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#091F40
Tritanopia (blue-blind)
#2A1C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1241;
/* rgb */ color: rgb(45, 18, 65);
/* oklch */ color: oklch(25.0% 0.087 307.7);
Tailwind
colors: {
  custom: {
    50: '#685276',
    500: '#2d1241',
    950: '#000000',
  },
}
SCSS
$custom: #2d1241;
$custom-light: #685276;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1241",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 274.468,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24977,
    "c": 0.08727,
    "h": 307.7
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#2D1241
secondary
#527A35
accent
#E04889
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1241

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

Preview Lab → · Contrast checker → · Palette generator →

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