#2B1B4E#2B1B4E

#2B1B4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.090 H 294.1°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2B1B4E
RGBrgb(43, 27, 78)
HSLhsl(259, 49%, 21%)
HSVhsv(259, 65%, 31%)
CMYKcmyk(44.9%, 65.4%, 0%, 69.4%)
CIE-LABlab(14.67, 21.56, -28.81)
CIE-LCHlch(14.67, 35.99, 306.81°)
OKLaboklab(27.35% 0.0367 -0.082)
OKLCHoklch(27.35% 0.09 294.1)
XYZxyz(2.7630, 1.8474, 7.4173)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B4E #3E4E1B
analogous
#1B244E #2B1B4E #441B4E
triadic
#2B1B4E #4E2B1B #1B4E2B
tetradic
#2B1B4E #4E1B24 #3E4E1B #1B4E44
square
#2B1B4E #4E1B24 #3E4E1B #1B4E44
split-complementary
#2B1B4E #4E441B #244E1B
monochromatic
#0D0817 #120B21 #2B1B4E #442B7B #5D3AA9

Accessibility & contrast

On white

15.33
#2B1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B4E
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B4E#FFFFFF#000000##FFFFFF
##2B1B4E1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#03244D
Tritanopia (blue-blind)
#222631
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1b4e;
/* rgb */ color: rgb(43, 27, 78);
/* oklch */ color: oklch(27.3% 0.090 294.1);
Tailwind
colors: {
  custom: {
    50: '#675880',
    500: '#2b1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b4e;
$custom-light: #675880;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b4e",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 258.824,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27348,
    "c": 0.08987,
    "h": 294.1
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#2B1B4E
secondary
#6F8441
accent
#D850AD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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