#2B1647#2B1647

#2B1647 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.088 H 300.0°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#2B1647
RGBrgb(43, 22, 71)
HSLhsl(266, 53%, 18%)
HSVhsv(266, 69%, 28%)
CMYKcmyk(39.4%, 69%, 0%, 72.2%)
CIE-LABlab(12.87, 22.64, -26.87)
CIE-LCHlch(12.87, 35.14, 310.12°)
OKLaboklab(25.87% 0.0441 -0.0763)
OKLCHoklch(25.87% 0.088 300)
XYZxyz(2.4202, 1.5423, 6.1302)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1647 #324716
analogous
#161947 #2B1647 #431647
triadic
#2B1647 #472B16 #16472B
tetradic
#2B1647 #471619 #324716 #164743
square
#2B1647 #471619 #324716 #164743
split-complementary
#2B1647 #474316 #194716
monochromatic
#0E0717 #0F0818 #2B1647 #472476 #6433A4

Accessibility & contrast

On white

16.05
#2B1647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1647
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1647#FFFFFF#000000##FFFFFF
##2B16471.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#052146
Tritanopia (blue-blind)
#25212C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1647;
/* rgb */ color: rgb(43, 22, 71);
/* oklch */ color: oklch(25.9% 0.088 300.0);
Tailwind
colors: {
  custom: {
    50: '#67547b',
    500: '#2b1647',
    950: '#000000',
  },
}
SCSS
$custom: #2b1647;
$custom-light: #67547b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1647",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 71
  },
  "hsl": {
    "h": 265.714,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25865,
    "c": 0.08813,
    "h": 300
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#2B1647
secondary
#617E3A
accent
#DC4C9E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B1647

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

Preview Lab → · Contrast checker → · Palette generator →

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