#2D0C49#2D0C49

#2D0C49 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.106 H 304.1°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#2D0C49
RGBrgb(45, 12, 73)
HSLhsl(272, 72%, 17%)
HSVhsv(272, 84%, 29%)
CMYKcmyk(38.4%, 83.6%, 0%, 71.4%)
CIE-LABlab(11.29, 29.39, -30.82)
CIE-LCHlch(11.29, 42.58, 313.64°)
OKLaboklab(24.85% 0.0595 -0.0878)
OKLCHoklch(24.85% 0.106 304.1)
XYZxyz(2.4160, 1.3019, 6.4260)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C49 #28490C
analogous
#0F0C49 #2D0C49 #490C47
triadic
#2D0C49 #492D0C #0C492D
tetradic
#2D0C49 #490F0C #28490C #0C4749
square
#2D0C49 #490F0C #28490C #0C4749
split-complementary
#2D0C49 #47490C #0C490F
monochromatic
#10041A #10041A #2D0C49 #4D157E #6E1DB2

Accessibility & contrast

On white

16.66
#2D0C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2D0C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C49
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C49#FFFFFF#000000##FFFFFF
##2D0C491.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4B
Deuteranopia (green-blind)
#001E48
Tritanopia (blue-blind)
#281B2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0c49;
/* rgb */ color: rgb(45, 12, 73);
/* oklch */ color: oklch(24.8% 0.106 304.1);
Tailwind
colors: {
  custom: {
    50: '#694f7c',
    500: '#2d0c49',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c49;
$custom-light: #694f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c49",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 272.459,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24849,
    "c": 0.10604,
    "h": 304.1
  },
  "luminance": 0.01302
}

Semantic roles & 50–950 ramp

primary
#2D0C49
secondary
#55852C
accent
#EE398C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2D0C49

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

Preview Lab → · Contrast checker → · Palette generator →

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