#2B1665#2B1665

#2B1665 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.129 H 287.5°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1665
RGBrgb(43, 22, 101)
HSLhsl(256, 64%, 24%)
HSVhsv(256, 78%, 40%)
CMYKcmyk(57.4%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.63, 32.08, -42.70)
CIE-LCHlch(15.63, 53.40, 306.92°)
OKLaboklab(28.69% 0.0386 -0.1228)
OKLCHoklch(28.69% 0.129 287.5)
XYZxyz(3.6314, 2.0268, 12.5093)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1665 #506516
analogous
#162965 #2B1665 #531665
triadic
#2B1665 #652B16 #16652B
tetradic
#2B1665 #651629 #506516 #166553
square
#2B1665 #651629 #506516 #166553
split-complementary
#2B1665 #655316 #296516
monochromatic
#0B0519 #160B33 #2B1665 #402197 #562CCA

Accessibility & contrast

On white

14.94
#2B1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1665
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1665#FFFFFF#000000##FFFFFF
##2B16651.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#132C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1665;
/* rgb */ color: rgb(43, 22, 101);
/* oklch */ color: oklch(28.7% 0.129 287.5);
Tailwind
colors: {
  custom: {
    50: '#6c5692',
    500: '#2b1665',
    950: '#000000',
  },
}
SCSS
$custom: #2b1665;
$custom-light: #6c5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1665",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 255.949,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2869,
    "c": 0.12874,
    "h": 287.5
  },
  "luminance": 0.02027
}

Semantic roles & 50–950 ramp

primary
#2B1665
secondary
#829C3B
accent
#E741BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1665

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

Preview Lab → · Contrast checker → · Palette generator →

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