#2B1650#2B1650

#2B1650 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.101 H 295.4°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1650
RGBrgb(43, 22, 80)
HSLhsl(262, 57%, 20%)
HSVhsv(262, 73%, 31%)
CMYKcmyk(46.2%, 72.5%, 0%, 68.6%)
CIE-LABlab(13.63, 25.43, -31.86)
CIE-LCHlch(13.63, 40.76, 308.60°)
OKLaboklab(26.65% 0.0431 -0.091)
OKLCHoklch(26.65% 0.101 295.4)
XYZxyz(2.7308, 1.6665, 7.7657)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1650 #3B5016
analogous
#161E50 #2B1650 #481650
triadic
#2B1650 #502B16 #16502B
tetradic
#2B1650 #50161E #3B5016 #165048
square
#2B1650 #50161E #3B5016 #165048
split-complementary
#2B1650 #504816 #1E5016
monochromatic
#0D0718 #110920 #2B1650 #452380 #5F30B0

Accessibility & contrast

On white

15.75
#2B1650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1650
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1650#FFFFFF#000000##FFFFFF
##2B16501.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#212430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1650;
/* rgb */ color: rgb(43, 22, 80);
/* oklch */ color: oklch(26.6% 0.101 295.4);
Tailwind
colors: {
  custom: {
    50: '#685582',
    500: '#2b1650',
    950: '#000000',
  },
}
SCSS
$custom: #2b1650;
$custom-light: #685582;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1650",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 261.724,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.26649,
    "c": 0.10068,
    "h": 295.4
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#2B1650
secondary
#6C873A
accent
#E048A9
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1650

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

Preview Lab → · Contrast checker → · Palette generator →

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