#2D0D40#2D0D40

#2D0D40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.094 H 309.8°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2D0D40
RGBrgb(45, 13, 64)
HSLhsl(278, 66%, 15%)
HSVhsv(278, 80%, 25%)
CMYKcmyk(29.7%, 79.7%, 0%, 74.9%)
CIE-LABlab(10.67, 26.46, -25.49)
CIE-LCHlch(10.67, 36.74, 316.07°)
OKLaboklab(24.17% 0.0602 -0.0721)
OKLCHoklch(24.17% 0.094 309.8)
XYZxyz(2.1513, 1.2159, 4.9709)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D40 #20400D
analogous
#130D40 #2D0D40 #400D39
triadic
#2D0D40 #402D0D #0D402D
tetradic
#2D0D40 #40130D #20400D #0D3940
square
#2D0D40 #40130D #20400D #0D3940
split-complementary
#2D0D40 #39400D #0D4013
monochromatic
#120519 #120519 #2D0D40 #511773 #7522A6

Accessibility & contrast

On white

16.89
#2D0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2D0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D40
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D40#FFFFFF#000000##FFFFFF
##2D0D401.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#2A1825
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0d40;
/* rgb */ color: rgb(45, 13, 64);
/* oklch */ color: oklch(24.2% 0.094 309.8);
Tailwind
colors: {
  custom: {
    50: '#684f75',
    500: '#2d0d40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d40;
$custom-light: #684f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d40",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 277.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24165,
    "c": 0.09396,
    "h": 309.8
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#2D0D40
secondary
#4A7C2D
accent
#E93F7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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