#2D1042#2D1042

#2D1042 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.092 H 307.6°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2D1042
RGBrgb(45, 16, 66)
HSLhsl(275, 61%, 16%)
HSVhsv(275, 76%, 26%)
CMYKcmyk(31.8%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.43, 25.36, -25.69)
CIE-LCHlch(11.43, 36.10, 314.63°)
OKLaboklab(24.76% 0.056 -0.0727)
OKLCHoklch(24.76% 0.092 307.6)
XYZxyz(2.2506, 1.3218, 5.2898)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1042 #254210
analogous
#141042 #2D1042 #42103E
triadic
#2D1042 #422D10 #10422D
tetradic
#2D1042 #421410 #254210 #103E42
square
#2D1042 #421410 #254210 #103E42
split-complementary
#2D1042 #3E4210 #104214
monochromatic
#110619 #110619 #2D1042 #4F1C73 #7028A5

Accessibility & contrast

On white

16.61
#2D1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1042
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1042#FFFFFF#000000##FFFFFF
##2D10421.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#2A1B27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d1042;
/* rgb */ color: rgb(45, 16, 66);
/* oklch */ color: oklch(24.8% 0.092 307.6);
Tailwind
colors: {
  custom: {
    50: '#685077',
    500: '#2d1042',
    950: '#000000',
  },
}
SCSS
$custom: #2d1042;
$custom-light: #685077;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1042",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 274.8,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24755,
    "c": 0.09182,
    "h": 307.6
  },
  "luminance": 0.01322
}

Semantic roles & 50–950 ramp

primary
#2D1042
secondary
#517C32
accent
#E44487
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1042

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

Preview Lab → · Contrast checker → · Palette generator →

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