#2D0C4F#2D0C4F

#2D0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.113 H 300.7°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2D0C4F
RGBrgb(45, 12, 79)
HSLhsl(270, 74%, 18%)
HSVhsv(270, 85%, 31%)
CMYKcmyk(43%, 84.8%, 0%, 69%)
CIE-LABlab(11.86, 31.04, -34.04)
CIE-LCHlch(11.86, 46.07, 312.36°)
OKLaboklab(25.43% 0.0578 -0.0973)
OKLCHoklch(25.43% 0.113 300.7)
XYZxyz(2.6246, 1.3853, 7.5247)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C4F #2E4F0C
analogous
#0C0D4F #2D0C4F #4E0C4F
triadic
#2D0C4F #4F2D0C #0C4F2D
tetradic
#2D0C4F #4F0C0D #2E4F0C #0C4F4E
square
#2D0C4F #4F0C0D #2E4F0C #0C4F4E
split-complementary
#2D0C4F #4F4E0C #0D4F0C
monochromatic
#0F041B #0F041B #2D0C4F #4B1484 #6A1CB9

Accessibility & contrast

On white

16.44
#2D0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C4F
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C4F#FFFFFF#000000##FFFFFF
##2D0C4F1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#251E2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0c4f;
/* rgb */ color: rgb(45, 12, 79);
/* oklch */ color: oklch(25.4% 0.113 300.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f81',
    500: '#2d0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c4f;
$custom-light: #6a4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c4f",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 269.552,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25427,
    "c": 0.11312,
    "h": 300.7
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#2D0C4F
secondary
#5C8B2C
accent
#F03895
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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