#2B1646#2B1646

#2B1646 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.087 H 300.6°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2B1646
RGBrgb(43, 22, 70)
HSLhsl(266, 52%, 18%)
HSVhsv(266, 69%, 27%)
CMYKcmyk(38.6%, 68.6%, 0%, 72.5%)
CIE-LABlab(12.79, 22.33, -26.30)
CIE-LCHlch(12.79, 34.51, 310.34°)
OKLaboklab(25.78% 0.0441 -0.0746)
OKLCHoklch(25.78% 0.087 300.6)
XYZxyz(2.3884, 1.5296, 5.9626)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1646 #314616
analogous
#161946 #2B1646 #431646
triadic
#2B1646 #462B16 #16462B
tetradic
#2B1646 #461619 #314616 #164643
square
#2B1646 #461619 #314616 #164643
split-complementary
#2B1646 #464316 #194616
monochromatic
#0E0717 #0E0717 #2B1646 #482575 #6433A3

Accessibility & contrast

On white

16.08
#2B1646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1646
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1646#FFFFFF#000000##FFFFFF
##2B16461.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#25202B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1646;
/* rgb */ color: rgb(43, 22, 70);
/* oklch */ color: oklch(25.8% 0.087 300.6);
Tailwind
colors: {
  custom: {
    50: '#67547a',
    500: '#2b1646',
    950: '#000000',
  },
}
SCSS
$custom: #2b1646;
$custom-light: #67547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1646",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 70
  },
  "hsl": {
    "h": 266.25,
    "s": 52.174,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25781,
    "c": 0.08671,
    "h": 300.6
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#2B1646
secondary
#607D3A
accent
#DC4C9D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B1646

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

Preview Lab → · Contrast checker → · Palette generator →

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