#2B0C4D#2B0C4D

#2B0C4D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.110 H 299.9°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#2B0C4D
RGBrgb(43, 12, 77)
HSLhsl(269, 73%, 17%)
HSVhsv(269, 84%, 30%)
CMYKcmyk(44.2%, 84.4%, 0%, 69.8%)
CIE-LABlab(11.36, 30.10, -33.49)
CIE-LCHlch(11.36, 45.03, 311.95°)
OKLaboklab(24.95% 0.055 -0.0957)
OKLCHoklch(24.95% 0.11 299.9)
XYZxyz(2.4670, 1.3123, 7.1431)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C4D #2E4D0C
analogous
#0C0E4D #2B0C4D #4B0C4D
triadic
#2B0C4D #4D2B0C #0C4D2B
tetradic
#2B0C4D #4D0C0E #2E4D0C #0C4D4B
square
#2B0C4D #4D0C0E #2E4D0C #0C4D4B
split-complementary
#2B0C4D #4D4B0C #0E4D0C
monochromatic
#0F041A #0F041A #2B0C4D #491482 #661DB7

Accessibility & contrast

On white

16.63
#2B0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0C4D
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C4D#FFFFFF#000000##FFFFFF
##2B0C4D1.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#231D2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b0c4d;
/* rgb */ color: rgb(43, 12, 77);
/* oklch */ color: oklch(25.0% 0.110 299.9);
Tailwind
colors: {
  custom: {
    50: '#694f7f',
    500: '#2b0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c4d;
$custom-light: #694f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c4d",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 268.615,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24952,
    "c": 0.11039,
    "h": 299.9
  },
  "luminance": 0.01312
}

Semantic roles & 50–950 ramp

primary
#2B0C4D
secondary
#5D892C
accent
#F03898
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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