#2B1338#2B1338

#2B1338 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.073 H 312.1°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2B1338
RGBrgb(43, 19, 56)
HSLhsl(279, 49%, 15%)
HSVhsv(279, 66%, 22%)
CMYKcmyk(23.2%, 66.1%, 0%, 78%)
CIE-LABlab(11.03, 20.21, -19.23)
CIE-LCHlch(11.03, 27.90, 316.43°)
OKLaboklab(24.16% 0.0488 -0.0539)
OKLCHoklch(24.16% 0.073 312.1)
XYZxyz(1.9428, 1.2649, 3.8824)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1338 #203813
analogous
#191338 #2B1338 #381333
triadic
#2B1338 #382B13 #13382B
tetradic
#2B1338 #381913 #203813 #133338
square
#2B1338 #381913 #203813 #133338
split-complementary
#2B1338 #333813 #133819
monochromatic
#120817 #120817 #2B1338 #4E2366 #713293

Accessibility & contrast

On white

16.76
#2B1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2B1338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1338
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1338#FFFFFF#000000##FFFFFF
##2B13381.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#2A1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b1338;
/* rgb */ color: rgb(43, 19, 56);
/* oklch */ color: oklch(24.2% 0.073 312.1);
Tailwind
colors: {
  custom: {
    50: '#66526f',
    500: '#2b1338',
    950: '#000000',
  },
}
SCSS
$custom: #2b1338;
$custom-light: #66526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1338",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 278.919,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24156,
    "c": 0.07268,
    "h": 312.1
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#2B1338
secondary
#4B7037
accent
#D94F7F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2B1338

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

Preview Lab → · Contrast checker → · Palette generator →

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