#2C0B56#2C0B56

#2C0B56 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.9% C 0.122 H 296.5°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2C0B56
RGBrgb(44, 11, 86)
HSLhsl(266, 77%, 19%)
HSVhsv(266, 87%, 34%)
CMYKcmyk(48.8%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.26, 33.28, -38.17)
CIE-LCHlch(12.26, 50.64, 311.09°)
OKLaboklab(25.89% 0.0546 -0.1094)
OKLCHoklch(25.89% 0.122 296.5)
XYZxyz(2.8376, 1.4466, 8.9320)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0B56 #35560B
analogous
#0B1056 #2C0B56 #520B56
triadic
#2C0B56 #562C0B #0B562C
tetradic
#2C0B56 #560B10 #35560B #0B5652
square
#2C0B56 #560B10 #35560B #0B5652
split-complementary
#2C0B56 #56520B #10560B
monochromatic
#0E031B #100420 #2C0B56 #48128C #6419C3

Accessibility & contrast

On white

16.29
#2C0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0B56
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0B56#FFFFFF#000000##FFFFFF
##2C0B561.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#202131
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c0b56;
/* rgb */ color: rgb(44, 11, 86);
/* oklch */ color: oklch(25.9% 0.122 296.5);
Tailwind
colors: {
  custom: {
    50: '#6b4f86',
    500: '#2c0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2c0b56;
$custom-light: #6b4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0b56",
  "rgb": {
    "r": 44,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 266.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25894,
    "c": 0.12225,
    "h": 296.5
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#2C0B56
secondary
#65912B
accent
#F4349F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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