#2B113A#2B113A

#2B113A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.079 H 311.1°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#2B113A
RGBrgb(43, 17, 58)
HSLhsl(278, 55%, 15%)
HSVhsv(278, 71%, 23%)
CMYKcmyk(25.9%, 70.7%, 0%, 77.3%)
CIE-LABlab(10.70, 22.02, -21.18)
CIE-LCHlch(10.70, 30.55, 316.11°)
OKLaboklab(23.97% 0.052 -0.0596)
OKLCHoklch(23.97% 0.079 311.1)
XYZxyz(1.9603, 1.2200, 4.1344)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B113A #203A11
analogous
#17113A #2B113A #3A1135
triadic
#2B113A #3A2B11 #113A2B
tetradic
#2B113A #3A1711 #203A11 #11353A
square
#2B113A #3A1711 #203A11 #11353A
split-complementary
#2B113A #353A11 #113A17
monochromatic
#120718 #120718 #2B113A #4E1F69 #712D99

Accessibility & contrast

On white

16.88
#2B113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B113A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B113A
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B113A#FFFFFF#000000##FFFFFF
##2B113A1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#0D1D39
Tritanopia (blue-blind)
#291923
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b113a;
/* rgb */ color: rgb(43, 17, 58);
/* oklch */ color: oklch(24.0% 0.079 311.1);
Tailwind
colors: {
  custom: {
    50: '#665070',
    500: '#2b113a',
    950: '#000000',
  },
}
SCSS
$custom: #2b113a;
$custom-light: #665070;
$custom-dark: #000000;
JSON
{
  "hex": "#2b113a",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 278.049,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23966,
    "c": 0.07906,
    "h": 311.1
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#2B113A
secondary
#4B7333
accent
#DE4A80
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B113A

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

Preview Lab → · Contrast checker → · Palette generator →

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