#2B1340#2B1340

#2B1340 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.084 H 305.7°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2B1340
RGBrgb(43, 19, 64)
HSLhsl(272, 54%, 16%)
HSVhsv(272, 70%, 25%)
CMYKcmyk(32.8%, 70.3%, 0%, 74.9%)
CIE-LABlab(11.62, 22.46, -23.99)
CIE-LCHlch(11.62, 32.86, 313.12°)
OKLaboklab(24.78% 0.0488 -0.0678)
OKLCHoklch(24.78% 0.084 305.7)
XYZxyz(2.1543, 1.3495, 4.9965)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1340 #284013
analogous
#151340 #2B1340 #40133F
triadic
#2B1340 #402B13 #13402B
tetradic
#2B1340 #401513 #284013 #133F40
square
#2B1340 #401513 #284013 #133F40
split-complementary
#2B1340 #3F4013 #134015
monochromatic
#100718 #100718 #2B1340 #4B216F #6A2F9E

Accessibility & contrast

On white

16.54
#2B1340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B1340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1340
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1340#FFFFFF#000000##FFFFFF
##2B13401.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#271C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1340;
/* rgb */ color: rgb(43, 19, 64);
/* oklch */ color: oklch(24.8% 0.084 305.7);
Tailwind
colors: {
  custom: {
    50: '#665275',
    500: '#2b1340',
    950: '#000000',
  },
}
SCSS
$custom: #2b1340;
$custom-light: #665275;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1340",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 272,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24776,
    "c": 0.08356,
    "h": 305.7
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#2B1340
secondary
#557936
accent
#DE4A8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1340

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

Preview Lab → · Contrast checker → · Palette generator →

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