#2B1467#2B1467

#2B1467 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.134 H 287.3°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1467
RGBrgb(43, 20, 103)
HSLhsl(257, 67%, 24%)
HSVhsv(257, 81%, 40%)
CMYKcmyk(58.3%, 80.6%, 0%, 59.6%)
CIE-LABlab(15.45, 33.80, -44.31)
CIE-LCHlch(15.45, 55.73, 307.34°)
OKLaboklab(28.63% 0.0397 -0.1275)
OKLCHoklch(28.63% 0.134 287.3)
XYZxyz(3.6939, 1.9930, 13.0194)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1467 #506714
analogous
#142667 #2B1467 #551467
triadic
#2B1467 #672B14 #14672B
tetradic
#2B1467 #671426 #506714 #146755
square
#2B1467 #671426 #506714 #146755
split-complementary
#2B1467 #675514 #266714
monochromatic
#0B051A #160A34 #2B1467 #401E9A #5628CD

Accessibility & contrast

On white

15.02
#2B1467 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B1467 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1467
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1467#FFFFFF#000000##FFFFFF
##2B14671.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#112B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1467;
/* rgb */ color: rgb(43, 20, 103);
/* oklch */ color: oklch(28.6% 0.134 287.3);
Tailwind
colors: {
  custom: {
    50: '#6c5593',
    500: '#2b1467',
    950: '#000000',
  },
}
SCSS
$custom: #2b1467;
$custom-light: #6c5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1467",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 103
  },
  "hsl": {
    "h": 256.627,
    "s": 67.48,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28628,
    "c": 0.13355,
    "h": 287.3
  },
  "luminance": 0.01993
}

Semantic roles & 50–950 ramp

primary
#2B1467
secondary
#829E39
accent
#EA3DBA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1467

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

Preview Lab → · Contrast checker → · Palette generator →

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