#2B1256#2B1256

#2B1256 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.114 H 294.0°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2B1256
RGBrgb(43, 18, 86)
HSLhsl(262, 65%, 20%)
HSVhsv(262, 79%, 34%)
CMYKcmyk(50%, 79.1%, 0%, 66.3%)
CIE-LABlab(13.34, 29.63, -36.41)
CIE-LCHlch(13.34, 46.95, 309.13°)
OKLaboklab(26.62% 0.0464 -0.1043)
OKLCHoklch(26.62% 0.114 294)
XYZxyz(2.8918, 1.6180, 8.9622)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1256 #3D5612
analogous
#121B56 #2B1256 #4D1256
triadic
#2B1256 #562B12 #12562B
tetradic
#2B1256 #56121B #3D5612 #12564D
square
#2B1256 #56121B #3D5612 #12564D
split-complementary
#2B1256 #564D12 #1B5612
monochromatic
#0D0519 #120723 #2B1256 #441D89 #5E27BB

Accessibility & contrast

On white

15.87
#2B1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1256
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1256#FFFFFF#000000##FFFFFF
##2B12561.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#1E2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1256;
/* rgb */ color: rgb(43, 18, 86);
/* oklch */ color: oklch(26.6% 0.114 294.0);
Tailwind
colors: {
  custom: {
    50: '#695286',
    500: '#2b1256',
    950: '#000000',
  },
}
SCSS
$custom: #2b1256;
$custom-light: #695286;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1256",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 262.059,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26615,
    "c": 0.11421,
    "h": 294
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#2B1256
secondary
#6E8F35
accent
#E83FAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1256

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

Preview Lab → · Contrast checker → · Palette generator →

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