#2D0C47#2D0C47

#2D0C47 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.104 H 305.4°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2D0C47
RGBrgb(45, 12, 71)
HSLhsl(274, 71%, 16%)
HSVhsv(274, 83%, 28%)
CMYKcmyk(36.6%, 83.1%, 0%, 72.2%)
CIE-LABlab(11.11, 28.84, -29.72)
CIE-LCHlch(11.11, 41.42, 314.14°)
OKLaboklab(24.66% 0.06 -0.0846)
OKLCHoklch(24.66% 0.104 305.4)
XYZxyz(2.3507, 1.2758, 6.0824)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C47 #26470C
analogous
#100C47 #2D0C47 #470C44
triadic
#2D0C47 #472D0C #0C472D
tetradic
#2D0C47 #47100C #26470C #0C4447
square
#2D0C47 #47100C #26470C #0C4447
split-complementary
#2D0C47 #44470C #0C4710
monochromatic
#11041A #11041A #2D0C47 #4E157B #6F1EB0

Accessibility & contrast

On white

16.73
#2D0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C47
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C47#FFFFFF#000000##FFFFFF
##2D0C471.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#281B29
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2d0c47;
/* rgb */ color: rgb(45, 12, 71);
/* oklch */ color: oklch(24.7% 0.104 305.4);
Tailwind
colors: {
  custom: {
    50: '#694f7b',
    500: '#2d0c47',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c47;
$custom-light: #694f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c47",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 273.559,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24662,
    "c": 0.10369,
    "h": 305.4
  },
  "luminance": 0.01276
}

Semantic roles & 50–950 ramp

primary
#2D0C47
secondary
#52832C
accent
#EE3A89
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2D0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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