#2B1142#2B1142

#2B1142 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.090 H 305.1°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#2B1142
RGBrgb(43, 17, 66)
HSLhsl(272, 59%, 16%)
HSVhsv(272, 74%, 26%)
CMYKcmyk(34.8%, 74.2%, 0%, 74.1%)
CIE-LABlab(11.33, 24.26, -25.86)
CIE-LCHlch(11.33, 35.46, 313.17°)
OKLaboklab(24.62% 0.0515 -0.0733)
OKLCHoklch(24.62% 0.09 305.1)
XYZxyz(2.1799, 1.3078, 5.2908)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1142 #284211
analogous
#131142 #2B1142 #421141
triadic
#2B1142 #422B11 #11422B
tetradic
#2B1142 #421311 #284211 #114142
square
#2B1142 #421311 #284211 #114142
split-complementary
#2B1142 #414211 #114213
monochromatic
#100618 #100618 #2B1142 #4B1E73 #6A2AA3

Accessibility & contrast

On white

16.65
#2B1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1142
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1142#FFFFFF#000000##FFFFFF
##2B11421.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#271C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b1142;
/* rgb */ color: rgb(43, 17, 66);
/* oklch */ color: oklch(24.6% 0.090 305.1);
Tailwind
colors: {
  custom: {
    50: '#675177',
    500: '#2b1142',
    950: '#000000',
  },
}
SCSS
$custom: #2b1142;
$custom-light: #675177;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1142",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 271.837,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24619,
    "c": 0.08959,
    "h": 305.1
  },
  "luminance": 0.01308
}

Semantic roles & 50–950 ramp

primary
#2B1142
secondary
#557C33
accent
#E2468F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1142

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

Preview Lab → · Contrast checker → · Palette generator →

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