#2D0942#2D0942

#2D0942 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.102 H 309.3°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#2D0942
RGBrgb(45, 9, 66)
HSLhsl(278, 76%, 15%)
HSVhsv(278, 86%, 26%)
CMYKcmyk(31.8%, 86.4%, 0%, 74.1%)
CIE-LABlab(10.16, 28.94, -27.74)
CIE-LCHlch(10.16, 40.09, 316.21°)
OKLaboklab(23.85% 0.0644 -0.0787)
OKLCHoklch(23.85% 0.102 309.3)
XYZxyz(2.1630, 1.1467, 5.2606)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0942 #1E4209
analogous
#110942 #2D0942 #42093B
triadic
#2D0942 #422D09 #09422D
tetradic
#2D0942 #421109 #1E4209 #093B42
square
#2D0942 #421109 #1E4209 #093B42
split-complementary
#2D0942 #3B4209 #094211
monochromatic
#12041B #12041B #2D0942 #521078 #7618AE

Accessibility & contrast

On white

17.08
#2D0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2D0942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0942
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0942#FFFFFF#000000##FFFFFF
##2D09421.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d0942;
/* rgb */ color: rgb(45, 9, 66);
/* oklch */ color: oklch(23.9% 0.102 309.3);
Tailwind
colors: {
  custom: {
    50: '#694d77',
    500: '#2d0942',
    950: '#000000',
  },
}
SCSS
$custom: #2d0942;
$custom-light: #694d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0942",
  "rgb": {
    "r": 45,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 277.895,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23853,
    "c": 0.10175,
    "h": 309.3
  },
  "luminance": 0.01147
}

Semantic roles & 50–950 ramp

primary
#2D0942
secondary
#488027
accent
#F3357B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0942

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

Preview Lab → · Contrast checker → · Palette generator →

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