#2B1856#2B1856

#2B1856 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.106 H 292.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2B1856
RGBrgb(43, 24, 86)
HSLhsl(258, 56%, 22%)
HSVhsv(258, 72%, 34%)
CMYKcmyk(50%, 72.1%, 0%, 66.3%)
CIE-LABlab(14.62, 26.08, -34.33)
CIE-LCHlch(14.62, 43.12, 307.23°)
OKLaboklab(27.53% 0.0398 -0.0983)
OKLCHoklch(27.53% 0.106 292)
XYZxyz(3.0021, 1.8386, 8.9990)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1856 #435618
analogous
#182456 #2B1856 #4A1856
triadic
#2B1856 #562B18 #18562B
tetradic
#2B1856 #561824 #435618 #18564A
square
#2B1856 #561824 #435618 #18564A
split-complementary
#2B1856 #564A18 #245618
monochromatic
#0C0718 #130B26 #2B1856 #432586 #5B33B6

Accessibility & contrast

On white

15.35
#2B1856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1856
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1856#FFFFFF#000000##FFFFFF
##2B18561.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#1E2734
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1856;
/* rgb */ color: rgb(43, 24, 86);
/* oklch */ color: oklch(27.5% 0.106 292.0);
Tailwind
colors: {
  custom: {
    50: '#695686',
    500: '#2b1856',
    950: '#000000',
  },
}
SCSS
$custom: #2b1856;
$custom-light: #695686;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1856",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 258.387,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27526,
    "c": 0.10601,
    "h": 292
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#2B1856
secondary
#748D3D
accent
#E048B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1856

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

Preview Lab → · Contrast checker → · Palette generator →

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