#2D1045#2D1045

#2D1045 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.096 H 305.6°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1045
RGBrgb(45, 16, 69)
HSLhsl(273, 62%, 17%)
HSVhsv(273, 77%, 27%)
CMYKcmyk(34.8%, 76.8%, 0%, 72.9%)
CIE-LABlab(11.68, 26.19, -27.39)
CIE-LCHlch(11.68, 37.90, 313.71°)
OKLaboklab(25.01% 0.0556 -0.0778)
OKLCHoklch(25.01% 0.096 305.6)
XYZxyz(2.3414, 1.3582, 5.7679)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1045 #284510
analogous
#131045 #2D1045 #451043
triadic
#2D1045 #452D10 #10452D
tetradic
#2D1045 #451310 #284510 #104345
square
#2D1045 #451310 #284510 #104345
split-complementary
#2D1045 #434510 #104513
monochromatic
#100619 #100619 #2D1045 #4D1C77 #6E27A8

Accessibility & contrast

On white

16.51
#2D1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1045
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1045#FFFFFF#000000##FFFFFF
##2D10451.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1045;
/* rgb */ color: rgb(45, 16, 69);
/* oklch */ color: oklch(25.0% 0.096 305.6);
Tailwind
colors: {
  custom: {
    50: '#695179',
    500: '#2d1045',
    950: '#000000',
  },
}
SCSS
$custom: #2d1045;
$custom-light: #695179;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1045",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 272.83,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25013,
    "c": 0.0956,
    "h": 305.6
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#2D1045
secondary
#557F32
accent
#E5428C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1045

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

Preview Lab → · Contrast checker → · Palette generator →

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