#2D1145#2D1145

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

Color values

HEX#2D1145
RGBrgb(45, 17, 69)
HSLhsl(272, 60%, 17%)
HSVhsv(272, 75%, 27%)
CMYKcmyk(34.8%, 75.4%, 0%, 72.9%)
CIE-LABlab(11.88, 25.62, -27.06)
CIE-LCHlch(11.88, 37.27, 313.43°)
OKLaboklab(25.16% 0.0543 -0.0768)
OKLCHoklch(25.16% 0.094 305.3)
XYZxyz(2.3566, 1.3885, 5.7729)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1145 #294511
analogous
#131145 #2D1145 #451143
triadic
#2D1145 #452D11 #11452D
tetradic
#2D1145 #451311 #294511 #114345
square
#2D1145 #451311 #294511 #114345
split-complementary
#2D1145 #434511 #114513
monochromatic
#100619 #100619 #2D1145 #4D1D76 #6D29A7

Accessibility & contrast

On white

16.44
#2D1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1145
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1145#FFFFFF#000000##FFFFFF
##2D11451.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#031F44
Tritanopia (blue-blind)
#291C29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1145;
/* rgb */ color: rgb(45, 17, 69);
/* oklch */ color: oklch(25.2% 0.094 305.3);
Tailwind
colors: {
  custom: {
    50: '#695179',
    500: '#2d1145',
    950: '#000000',
  },
}
SCSS
$custom: #2d1145;
$custom-light: #695179;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1145",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 272.308,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25159,
    "c": 0.09406,
    "h": 305.3
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#2D1145
secondary
#567F33
accent
#E4448E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1145

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

Preview Lab → · Contrast checker → · Palette generator →

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