#2D0842#2D0842

#2D0842 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.103 H 309.5°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2D0842
RGBrgb(45, 8, 66)
HSLhsl(278, 78%, 15%)
HSVhsv(278, 88%, 26%)
CMYKcmyk(31.8%, 87.9%, 0%, 74.1%)
CIE-LABlab(9.99, 29.42, -28.01)
CIE-LCHlch(9.99, 40.63, 316.41°)
OKLaboklab(23.74% 0.0656 -0.0795)
OKLCHoklch(23.74% 0.103 309.5)
XYZxyz(2.1522, 1.1249, 5.2570)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0842 #1D4208
analogous
#100842 #2D0842 #42083A
triadic
#2D0842 #422D08 #08422D
tetradic
#2D0842 #421008 #1D4208 #083A42
square
#2D0842 #421008 #1D4208 #083A42
split-complementary
#2D0842 #3A4208 #084210
monochromatic
#13031B #13031B #2D0842 #520F79 #7715AF

Accessibility & contrast

On white

17.14
#2D0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2D0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0842
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0842#FFFFFF#000000##FFFFFF
##2D08421.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#2A1625
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2d0842;
/* rgb */ color: rgb(45, 8, 66);
/* oklch */ color: oklch(23.7% 0.103 309.5);
Tailwind
colors: {
  custom: {
    50: '#694c77',
    500: '#2d0842',
    950: '#000000',
  },
}
SCSS
$custom: #2d0842;
$custom-light: #694c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0842",
  "rgb": {
    "r": 45,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 278.276,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23737,
    "c": 0.10306,
    "h": 309.5
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#2D0842
secondary
#468025
accent
#F53379
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0842

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

Preview Lab → · Contrast checker → · Palette generator →

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