#2C0B4A#2C0B4A

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

Color values

HEX#2C0B4A
RGBrgb(44, 11, 74)
HSLhsl(271, 74%, 17%)
HSVhsv(271, 85%, 29%)
CMYKcmyk(40.5%, 85.1%, 0%, 71%)
CIE-LABlab(11.06, 29.94, -31.90)
CIE-LCHlch(11.06, 43.74, 313.18°)
OKLaboklab(24.68% 0.0586 -0.091)
OKLCHoklch(24.68% 0.108 302.8)
XYZxyz(2.3941, 1.2692, 6.5961)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0B4A #294A0B
analogous
#0D0B4A #2C0B4A #4A0B49
triadic
#2C0B4A #4A2C0B #0B4A2C
tetradic
#2C0B4A #4A0D0B #294A0B #0B494A
square
#2C0B4A #4A0D0B #294A0B #0B494A
split-complementary
#2C0B4A #494A0B #0B4A0D
monochromatic
#10041B #10041B #2C0B4A #4C137F #6B1BB5

Accessibility & contrast

On white

16.75
#2C0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0B4A
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0B4A#FFFFFF#000000##FFFFFF
##2C0B4A1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4C
Deuteranopia (green-blind)
#001D49
Tritanopia (blue-blind)
#261B2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c0b4a;
/* rgb */ color: rgb(44, 11, 74);
/* oklch */ color: oklch(24.7% 0.108 302.8);
Tailwind
colors: {
  custom: {
    50: '#694e7d',
    500: '#2c0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #2c0b4a;
$custom-light: #694e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0b4a",
  "rgb": {
    "r": 44,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 271.429,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24683,
    "c": 0.10821,
    "h": 302.8
  },
  "luminance": 0.01269
}

Semantic roles & 50–950 ramp

primary
#2C0B4A
secondary
#56862B
accent
#F1378F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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