#2B0C3D#2B0C3D

#2B0C3D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.091 H 310.1°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#2B0C3D
RGBrgb(43, 12, 61)
HSLhsl(278, 67%, 14%)
HSVhsv(278, 80%, 24%)
CMYKcmyk(29.5%, 80.3%, 0%, 76.1%)
CIE-LABlab(9.90, 25.69, -24.62)
CIE-LCHlch(9.90, 35.58, 316.22°)
OKLaboklab(23.47% 0.0587 -0.0696)
OKLCHoklch(23.47% 0.091 310.1)
XYZxyz(1.9699, 1.1135, 4.5251)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C3D #1E3D0C
analogous
#130C3D #2B0C3D #3D0C37
triadic
#2B0C3D #3D2B0C #0C3D2B
tetradic
#2B0C3D #3D130C #1E3D0C #0C373D
square
#2B0C3D #3D130C #1E3D0C #0C373D
split-complementary
#2B0C3D #373D0C #0C3D13
monochromatic
#12051A #12051A #2B0C3D #4F1670 #7320A3

Accessibility & contrast

On white

17.18
#2B0C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0C3D
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C3D#FFFFFF#000000##FFFFFF
##2B0C3D1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#051C3C
Tritanopia (blue-blind)
#291723
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0c3d;
/* rgb */ color: rgb(43, 12, 61);
/* oklch */ color: oklch(23.5% 0.091 310.1);
Tailwind
colors: {
  custom: {
    50: '#674e73',
    500: '#2b0c3d',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c3d;
$custom-light: #674e73;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c3d",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 277.959,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23465,
    "c": 0.09109,
    "h": 310.1
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#2B0C3D
secondary
#48792C
accent
#EA3E7D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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