#2D0C41#2D0C41

#2D0C41 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.097 H 309.4°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#2D0C41
RGBrgb(45, 12, 65)
HSLhsl(277, 69%, 15%)
HSVhsv(277, 82%, 25%)
CMYKcmyk(30.8%, 81.5%, 0%, 74.5%)
CIE-LABlab(10.58, 27.24, -26.36)
CIE-LCHlch(10.58, 37.91, 315.94°)
OKLaboklab(24.12% 0.0613 -0.0747)
OKLCHoklch(24.12% 0.097 309.4)
XYZxyz(2.1676, 1.2025, 5.1179)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C41 #20410C
analogous
#120C41 #2D0C41 #410C3B
triadic
#2D0C41 #412D0C #0C412D
tetradic
#2D0C41 #41120C #20410C #0C3B41
square
#2D0C41 #41120C #20410C #0C3B41
split-complementary
#2D0C41 #3B410C #0C4112
monochromatic
#12051A #12051A #2D0C41 #511675 #751FA8

Accessibility & contrast

On white

16.93
#2D0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C41
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C41#FFFFFF#000000##FFFFFF
##2D0C411.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#2A1825
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0c41;
/* rgb */ color: rgb(45, 12, 65);
/* oklch */ color: oklch(24.1% 0.097 309.4);
Tailwind
colors: {
  custom: {
    50: '#694e76',
    500: '#2d0c41',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c41;
$custom-light: #694e76;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c41",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 277.358,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24121,
    "c": 0.09659,
    "h": 309.4
  },
  "luminance": 0.01202
}

Semantic roles & 50–950 ramp

primary
#2D0C41
secondary
#4A7D2C
accent
#EC3C7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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