#2C0D46#2C0D46

#2C0D46 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.101 H 304.7°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2C0D46
RGBrgb(44, 13, 70)
HSLhsl(273, 69%, 16%)
HSVhsv(273, 81%, 27%)
CMYKcmyk(37.1%, 81.4%, 0%, 72.5%)
CIE-LABlab(11.03, 27.85, -29.15)
CIE-LCHlch(11.03, 40.31, 313.70°)
OKLaboklab(24.55% 0.0575 -0.0829)
OKLCHoklch(24.55% 0.101 304.7)
XYZxyz(2.2879, 1.2655, 5.9169)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D46 #27460D
analogous
#100D46 #2C0D46 #460D44
triadic
#2C0D46 #462C0D #0D462C
tetradic
#2C0D46 #46100D #27460D #0D4446
square
#2C0D46 #46100D #27460D #0D4446
split-complementary
#2C0D46 #44460D #0D4610
monochromatic
#10051A #10051A #2C0D46 #4C177A #6D20AD

Accessibility & contrast

On white

16.76
#2C0D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0D46
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D46#FFFFFF#000000##FFFFFF
##2C0D461.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#271B28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0d46;
/* rgb */ color: rgb(44, 13, 70);
/* oklch */ color: oklch(24.5% 0.101 304.7);
Tailwind
colors: {
  custom: {
    50: '#684f7a',
    500: '#2c0d46',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d46;
$custom-light: #684f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d46",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 272.632,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24548,
    "c": 0.10089,
    "h": 304.7
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#2C0D46
secondary
#54812D
accent
#EC3C8C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C0D46

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

Preview Lab → · Contrast checker → · Palette generator →

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