#2B1454#2B1454

#2B1454 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.109 H 294.2°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2B1454
RGBrgb(43, 20, 84)
HSLhsl(262, 62%, 20%)
HSVhsv(262, 76%, 33%)
CMYKcmyk(48.8%, 76.2%, 0%, 67.1%)
CIE-LABlab(13.55, 27.88, -34.70)
CIE-LCHlch(13.55, 44.51, 308.77°)
OKLaboklab(26.71% 0.0447 -0.0993)
OKLCHoklch(26.71% 0.109 294.2)
XYZxyz(2.8462, 1.6539, 8.5551)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1454 #3D5414
analogous
#141D54 #2B1454 #4B1454
triadic
#2B1454 #542B14 #14542B
tetradic
#2B1454 #54141D #3D5414 #14544B
square
#2B1454 #54141D #3D5414 #14544B
split-complementary
#2B1454 #544B14 #1D5414
monochromatic
#0D0619 #120823 #2B1454 #442085 #5E2CB7

Accessibility & contrast

On white

15.78
#2B1454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1454
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1454#FFFFFF#000000##FFFFFF
##2B14541.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#1F2432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1454;
/* rgb */ color: rgb(43, 20, 84);
/* oklch */ color: oklch(26.7% 0.109 294.2);
Tailwind
colors: {
  custom: {
    50: '#695385',
    500: '#2b1454',
    950: '#000000',
  },
}
SCSS
$custom: #2b1454;
$custom-light: #695385;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1454",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 261.563,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26709,
    "c": 0.10896,
    "h": 294.2
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#2B1454
secondary
#6E8C38
accent
#E543AB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1454

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

Preview Lab → · Contrast checker → · Palette generator →

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