#2D1146#2D1146

#2D1146 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.095 H 304.6°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2D1146
RGBrgb(45, 17, 70)
HSLhsl(272, 61%, 17%)
HSVhsv(272, 76%, 27%)
CMYKcmyk(35.7%, 75.7%, 0%, 72.5%)
CIE-LABlab(11.96, 25.91, -27.63)
CIE-LCHlch(11.96, 37.87, 313.16°)
OKLaboklab(25.25% 0.0542 -0.0785)
OKLCHoklch(25.25% 0.095 304.6)
XYZxyz(2.3879, 1.4010, 5.9378)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1146 #2A4611
analogous
#121146 #2D1146 #461145
triadic
#2D1146 #462D11 #11462D
tetradic
#2D1146 #461211 #2A4611 #114546
square
#2D1146 #461211 #2A4611 #114546
split-complementary
#2D1146 #454611 #114612
monochromatic
#100619 #100619 #2D1146 #4D1D77 #6C29A8

Accessibility & contrast

On white

16.40
#2D1146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1146
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1146#FFFFFF#000000##FFFFFF
##2D11461.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#021F45
Tritanopia (blue-blind)
#281D29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1146;
/* rgb */ color: rgb(45, 17, 70);
/* oklch */ color: oklch(25.2% 0.095 304.6);
Tailwind
colors: {
  custom: {
    50: '#69517a',
    500: '#2d1146',
    950: '#000000',
  },
}
SCSS
$custom: #2d1146;
$custom-light: #69517a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1146",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 271.698,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25245,
    "c": 0.09535,
    "h": 304.6
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#2D1146
secondary
#578033
accent
#E4448F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1146

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

Preview Lab → · Contrast checker → · Palette generator →

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