#2B1143#2B1143

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

Color values

HEX#2B1143
RGBrgb(43, 17, 67)
HSLhsl(271, 60%, 16%)
HSVhsv(271, 75%, 26%)
CMYKcmyk(35.8%, 74.6%, 0%, 73.7%)
CIE-LABlab(11.41, 24.54, -26.43)
CIE-LCHlch(11.41, 36.07, 312.88°)
OKLaboklab(24.71% 0.0513 -0.075)
OKLCHoklch(24.71% 0.091 304.4)
XYZxyz(2.2096, 1.3197, 5.4474)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1143 #294311
analogous
#121143 #2B1143 #431142
triadic
#2B1143 #432B11 #11432B
tetradic
#2B1143 #431211 #294311 #114243
square
#2B1143 #431211 #294311 #114243
split-complementary
#2B1143 #424311 #114312
monochromatic
#100618 #100618 #2B1143 #4A1D74 #6A2AA5

Accessibility & contrast

On white

16.61
#2B1143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1143
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1143#FFFFFF#000000##FFFFFF
##2B11431.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#031E42
Tritanopia (blue-blind)
#271C28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b1143;
/* rgb */ color: rgb(43, 17, 67);
/* oklch */ color: oklch(24.7% 0.091 304.4);
Tailwind
colors: {
  custom: {
    50: '#675177',
    500: '#2b1143',
    950: '#000000',
  },
}
SCSS
$custom: #2b1143;
$custom-light: #675177;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1143",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 67
  },
  "hsl": {
    "h": 271.2,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24705,
    "c": 0.0909,
    "h": 304.4
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#2B1143
secondary
#567D33
accent
#E34591
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1143

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

Preview Lab → · Contrast checker → · Palette generator →

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