#2B1656#2B1656

#2B1656 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.109 H 292.7°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#2B1656
RGBrgb(43, 22, 86)
HSLhsl(260, 59%, 21%)
HSVhsv(260, 74%, 34%)
CMYKcmyk(50%, 74.4%, 0%, 66.3%)
CIE-LABlab(14.17, 27.31, -35.06)
CIE-LCHlch(14.17, 44.44, 307.92°)
OKLaboklab(27.21% 0.0421 -0.1004)
OKLCHoklch(27.21% 0.109 292.7)
XYZxyz(2.9624, 1.7592, 8.9858)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1656 #415616
analogous
#162156 #2B1656 #4B1656
triadic
#2B1656 #562B16 #16562B
tetradic
#2B1656 #561621 #415616 #16564B
square
#2B1656 #561621 #415616 #16564B
split-complementary
#2B1656 #564B16 #215616
monochromatic
#0C0618 #130A25 #2B1656 #432287 #5C2FB7

Accessibility & contrast

On white

15.53
#2B1656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1656
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1656#FFFFFF#000000##FFFFFF
##2B16561.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.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: #2b1656;
/* rgb */ color: rgb(43, 22, 86);
/* oklch */ color: oklch(27.2% 0.109 292.7);
Tailwind
colors: {
  custom: {
    50: '#695586',
    500: '#2b1656',
    950: '#000000',
  },
}
SCSS
$custom: #2b1656;
$custom-light: #695586;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1656",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 259.688,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27205,
    "c": 0.10887,
    "h": 292.7
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#2B1656
secondary
#728D3A
accent
#E245AF
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1656

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

Preview Lab → · Contrast checker → · Palette generator →

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