#2D0C4D#2D0C4D

#2D0C4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.111 H 301.8°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#2D0C4D
RGBrgb(45, 12, 77)
HSLhsl(270, 73%, 17%)
HSVhsv(270, 84%, 30%)
CMYKcmyk(41.6%, 84.4%, 0%, 69.8%)
CIE-LABlab(11.67, 30.49, -32.98)
CIE-LCHlch(11.67, 44.91, 312.76°)
OKLaboklab(25.23% 0.0584 -0.0941)
OKLCHoklch(25.23% 0.111 301.8)
XYZxyz(2.5529, 1.3566, 7.1471)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C4D #2C4D0C
analogous
#0D0C4D #2D0C4D #4D0C4C
triadic
#2D0C4D #4D2D0C #0C4D2D
tetradic
#2D0C4D #4D0D0C #2C4D0C #0C4C4D
square
#2D0C4D #4D0D0C #2C4D0C #0C4C4D
split-complementary
#2D0C4D #4C4D0C #0C4D0D
monochromatic
#0F041A #0F041A #2D0C4D #4C1482 #6B1DB7

Accessibility & contrast

On white

16.52
#2D0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C4D
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C4D#FFFFFF#000000##FFFFFF
##2D0C4D1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#261D2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0c4d;
/* rgb */ color: rgb(45, 12, 77);
/* oklch */ color: oklch(25.2% 0.111 301.8);
Tailwind
colors: {
  custom: {
    50: '#6a4f7f',
    500: '#2d0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c4d;
$custom-light: #6a4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c4d",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 270.462,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25231,
    "c": 0.11077,
    "h": 301.8
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#2D0C4D
secondary
#5A892C
accent
#F03892
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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