#2D1144#2D1144

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

Color values

HEX#2D1144
RGBrgb(45, 17, 68)
HSLhsl(273, 60%, 17%)
HSVhsv(273, 75%, 27%)
CMYKcmyk(33.8%, 75%, 0%, 73.3%)
CIE-LABlab(11.80, 25.34, -26.50)
CIE-LCHlch(11.80, 36.66, 313.72°)
OKLaboklab(25.07% 0.0545 -0.0751)
OKLCHoklch(25.07% 0.093 305.9)
XYZxyz(2.3258, 1.3762, 5.6108)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1144 #284411
analogous
#141144 #2D1144 #441142
triadic
#2D1144 #442D11 #11442D
tetradic
#2D1144 #441411 #284411 #114244
square
#2D1144 #441411 #284411 #114244
split-complementary
#2D1144 #424411 #114414
monochromatic
#100618 #100618 #2D1144 #4D1D75 #6E29A6

Accessibility & contrast

On white

16.47
#2D1144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1144
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1144#FFFFFF#000000##FFFFFF
##2D11441.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E46
Deuteranopia (green-blind)
#041F43
Tritanopia (blue-blind)
#291C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1144;
/* rgb */ color: rgb(45, 17, 68);
/* oklch */ color: oklch(25.1% 0.093 305.9);
Tailwind
colors: {
  custom: {
    50: '#685178',
    500: '#2d1144',
    950: '#000000',
  },
}
SCSS
$custom: #2d1144;
$custom-light: #685178;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1144",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 68
  },
  "hsl": {
    "h": 272.941,
    "s": 60,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25073,
    "c": 0.09278,
    "h": 305.9
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#2D1144
secondary
#557E33
accent
#E3458C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1144

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

Preview Lab → · Contrast checker → · Palette generator →

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