#2B1667#2B1667

#2B1667 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.131 H 286.9°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2B1667
RGBrgb(43, 22, 103)
HSLhsl(256, 65%, 25%)
HSVhsv(256, 79%, 40%)
CMYKcmyk(58.3%, 78.6%, 0%, 59.6%)
CIE-LABlab(15.83, 32.71, -43.68)
CIE-LCHlch(15.83, 54.57, 306.83°)
OKLaboklab(28.9% 0.0381 -0.1257)
OKLCHoklch(28.9% 0.131 286.9)
XYZxyz(3.7306, 2.0665, 13.0316)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1667 #526716
analogous
#162967 #2B1667 #541667
triadic
#2B1667 #672B16 #16672B
tetradic
#2B1667 #671629 #526716 #166754
square
#2B1667 #671629 #526716 #166754
split-complementary
#2B1667 #675416 #296716
monochromatic
#0B0519 #160B35 #2B1667 #402199 #552CCC

Accessibility & contrast

On white

14.86
#2B1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1667
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1667#FFFFFF#000000##FFFFFF
##2B16671.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#112C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1667;
/* rgb */ color: rgb(43, 22, 103);
/* oklch */ color: oklch(28.9% 0.131 286.9);
Tailwind
colors: {
  custom: {
    50: '#6c5693',
    500: '#2b1667',
    950: '#000000',
  },
}
SCSS
$custom: #2b1667;
$custom-light: #6c5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1667",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 255.556,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28897,
    "c": 0.13132,
    "h": 286.9
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#2B1667
secondary
#849E3B
accent
#E840BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1667

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

Preview Lab → · Contrast checker → · Palette generator →

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