#2D0C46#2D0C46

#2D0C46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.102 H 306.0°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2D0C46
RGBrgb(45, 12, 70)
HSLhsl(274, 71%, 16%)
HSVhsv(274, 83%, 27%)
CMYKcmyk(35.7%, 82.9%, 0%, 72.5%)
CIE-LABlab(11.01, 28.58, -29.17)
CIE-LCHlch(11.01, 40.83, 314.41°)
OKLaboklab(24.57% 0.0602 -0.0829)
OKLCHoklch(24.57% 0.103 306)
XYZxyz(2.3189, 1.2630, 5.9148)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C46 #25460C
analogous
#100C46 #2D0C46 #460C42
triadic
#2D0C46 #462D0C #0C462D
tetradic
#2D0C46 #46100C #25460C #0C4246
square
#2D0C46 #46100C #25460C #0C4246
split-complementary
#2D0C46 #42460C #0C4610
monochromatic
#11041A #11041A #2D0C46 #4F157A #701EAE

Accessibility & contrast

On white

16.77
#2D0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2D0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C46
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C46#FFFFFF#000000##FFFFFF
##2D0C461.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#291A28
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2d0c46;
/* rgb */ color: rgb(45, 12, 70);
/* oklch */ color: oklch(24.6% 0.102 306.0);
Tailwind
colors: {
  custom: {
    50: '#694e7a',
    500: '#2d0c46',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c46;
$custom-light: #694e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c46",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 274.138,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2457,
    "c": 0.1025,
    "h": 306
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#2D0C46
secondary
#51822C
accent
#ED3A88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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