#2B1654#2B1654

#2B1654 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.106 H 293.6°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2B1654
RGBrgb(43, 22, 84)
HSLhsl(260, 58%, 21%)
HSVhsv(260, 74%, 33%)
CMYKcmyk(48.8%, 73.8%, 0%, 67.1%)
CIE-LABlab(13.99, 26.68, -34.00)
CIE-LCHlch(13.99, 43.22, 308.12°)
OKLaboklab(27.02% 0.0425 -0.0973)
OKLCHoklch(27.02% 0.106 293.6)
XYZxyz(2.8830, 1.7274, 8.5673)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1654 #3F5416
analogous
#162054 #2B1654 #4A1654
triadic
#2B1654 #542B16 #16542B
tetradic
#2B1654 #541620 #3F5416 #16544A
square
#2B1654 #541620 #3F5416 #16544A
split-complementary
#2B1654 #544A16 #205416
monochromatic
#0C0618 #120924 #2B1654 #442384 #5D2FB5

Accessibility & contrast

On white

15.61
#2B1654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B1654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1654
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1654#FFFFFF#000000##FFFFFF
##2B16541.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#1F2533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1654;
/* rgb */ color: rgb(43, 22, 84);
/* oklch */ color: oklch(27.0% 0.106 293.6);
Tailwind
colors: {
  custom: {
    50: '#695585',
    500: '#2b1654',
    950: '#000000',
  },
}
SCSS
$custom: #2b1654;
$custom-light: #695585;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1654",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 260.323,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.10615,
    "h": 293.6
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#2B1654
secondary
#708B3A
accent
#E246AD
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1654

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

Preview Lab → · Contrast checker → · Palette generator →

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