#2B1A4E#2B1A4E

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

Color values

HEX#2B1A4E
RGBrgb(43, 26, 78)
HSLhsl(260, 50%, 20%)
HSVhsv(260, 67%, 31%)
CMYKcmyk(44.9%, 66.7%, 0%, 69.4%)
CIE-LABlab(14.41, 22.22, -29.22)
CIE-LCHlch(14.41, 36.71, 307.26°)
OKLaboklab(27.17% 0.0381 -0.0832)
OKLCHoklch(27.17% 0.092 294.6)
XYZxyz(2.7404, 1.8024, 7.4098)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A4E #3D4E1A
analogous
#1A234E #2B1A4E #451A4E
triadic
#2B1A4E #4E2B1A #1A4E2B
tetradic
#2B1A4E #4E1A23 #3D4E1A #1A4E45
square
#2B1A4E #4E1A23 #3D4E1A #1A4E45
split-complementary
#2B1A4E #4E451A #234E1A
monochromatic
#0D0817 #120B20 #2B1A4E #44297C #5E39AA

Accessibility & contrast

On white

15.44
#2B1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A4E
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A4E#FFFFFF#000000##FFFFFF
##2B1A4E1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#01244D
Tritanopia (blue-blind)
#222631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1a4e;
/* rgb */ color: rgb(43, 26, 78);
/* oklch */ color: oklch(27.2% 0.092 294.6);
Tailwind
colors: {
  custom: {
    50: '#675780',
    500: '#2b1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a4e;
$custom-light: #675780;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a4e",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 259.615,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27165,
    "c": 0.09152,
    "h": 294.6
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#2B1A4E
secondary
#6E8440
accent
#DA4EAC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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