#2B1148#2B1148

#2B1148 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.097 H 301.3°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#2B1148
RGBrgb(43, 17, 72)
HSLhsl(268, 62%, 17%)
HSVhsv(268, 76%, 28%)
CMYKcmyk(40.3%, 76.4%, 0%, 71.8%)
CIE-LABlab(11.84, 25.99, -29.24)
CIE-LCHlch(11.84, 39.12, 311.64°)
OKLaboklab(25.15% 0.0506 -0.0833)
OKLCHoklch(25.15% 0.097 301.3)
XYZxyz(2.3661, 1.3824, 6.2718)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1148 #2E4811
analogous
#111248 #2B1148 #471148
triadic
#2B1148 #482B11 #11482B
tetradic
#2B1148 #481112 #2E4811 #114847
square
#2B1148 #481112 #2E4811 #114847
split-complementary
#2B1148 #484711 #124811
monochromatic
#0F0619 #0F0619 #2B1148 #491D7A #6628AB

Accessibility & contrast

On white

16.45
#2B1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1148
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1148#FFFFFF#000000##FFFFFF
##2B11481.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#251E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1148;
/* rgb */ color: rgb(43, 17, 72);
/* oklch */ color: oklch(25.1% 0.097 301.3);
Tailwind
colors: {
  custom: {
    50: '#67517b',
    500: '#2b1148',
    950: '#000000',
  },
}
SCSS
$custom: #2b1148;
$custom-light: #67517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1148",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 268.364,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25145,
    "c": 0.09744,
    "h": 301.3
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#2B1148
secondary
#5D8233
accent
#E54398
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1148

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

Preview Lab → · Contrast checker → · Palette generator →

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