#2B1359#2B1359

#2B1359 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 292.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2B1359
RGBrgb(43, 19, 89)
HSLhsl(261, 65%, 21%)
HSVhsv(261, 79%, 35%)
CMYKcmyk(51.7%, 78.7%, 0%, 65.1%)
CIE-LABlab(13.83, 29.99, -37.64)
CIE-LCHlch(13.83, 48.13, 308.55°)
OKLaboklab(27.05% 0.0446 -0.108)
OKLCHoklch(27.05% 0.117 292.5)
XYZxyz(3.0318, 1.7005, 9.6177)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1359 #415913
analogous
#131E59 #2B1359 #4E1359
triadic
#2B1359 #592B13 #13592B
tetradic
#2B1359 #59131E #415913 #13594E
square
#2B1359 #59131E #415913 #13594E
split-complementary
#2B1359 #594E13 #1E5913
monochromatic
#0C0519 #130827 #2B1359 #431E8B #5C29BE

Accessibility & contrast

On white

15.67
#2B1359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1359 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1359
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1359#FFFFFF#000000##FFFFFF
##2B13591.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#1D2535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1359;
/* rgb */ color: rgb(43, 19, 89);
/* oklch */ color: oklch(27.1% 0.117 292.5);
Tailwind
colors: {
  custom: {
    50: '#6a5389',
    500: '#2b1359',
    950: '#000000',
  },
}
SCSS
$custom: #2b1359;
$custom-light: #6a5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1359",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 89
  },
  "hsl": {
    "h": 260.571,
    "s": 64.815,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27052,
    "c": 0.11682,
    "h": 292.5
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#2B1359
secondary
#729137
accent
#E840AE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1359

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

Preview Lab → · Contrast checker → · Palette generator →

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