#2B1756#2B1756

#2B1756 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.107 H 292.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2B1756
RGBrgb(43, 23, 86)
HSLhsl(259, 58%, 21%)
HSVhsv(259, 73%, 34%)
CMYKcmyk(50%, 73.3%, 0%, 66.3%)
CIE-LABlab(14.39, 26.70, -34.70)
CIE-LCHlch(14.39, 43.78, 307.58°)
OKLaboklab(27.36% 0.041 -0.0993)
OKLCHoklch(27.36% 0.107 292.4)
XYZxyz(2.9819, 1.7982, 8.9923)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1756 #425617
analogous
#172356 #2B1756 #4B1756
triadic
#2B1756 #562B17 #17562B
tetradic
#2B1756 #561723 #425617 #17564B
square
#2B1756 #561723 #425617 #17564B
split-complementary
#2B1756 #564B17 #235617
monochromatic
#0C0618 #130A26 #2B1756 #432486 #5B31B7

Accessibility & contrast

On white

15.45
#2B1756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1756
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1756#FFFFFF#000000##FFFFFF
##2B17561.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#1E2634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1756;
/* rgb */ color: rgb(43, 23, 86);
/* oklch */ color: oklch(27.4% 0.107 292.4);
Tailwind
colors: {
  custom: {
    50: '#695586',
    500: '#2b1756',
    950: '#000000',
  },
}
SCSS
$custom: #2b1756;
$custom-light: #695586;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1756",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 259.048,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27363,
    "c": 0.10745,
    "h": 292.4
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#2B1756
secondary
#738D3C
accent
#E147B0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1756

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

Preview Lab → · Contrast checker → · Palette generator →

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