#2B1877#2B1877

#2B1877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 282.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2B1877
RGBrgb(43, 24, 119)
HSLhsl(252, 66%, 28%)
HSVhsv(252, 80%, 47%)
CMYKcmyk(63.9%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.91, 36.72, -50.66)
CIE-LCHlch(17.91, 62.57, 305.94°)
OKLaboklab(30.87% 0.032 -0.1461)
OKLCHoklch(30.87% 0.15 282.3)
XYZxyz(4.6516, 2.4984, 17.6863)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1877 #647718
analogous
#183477 #2B1877 #5A1877
triadic
#2B1877 #772B18 #18772B
tetradic
#2B1877 #771834 #647718 #18775A
square
#2B1877 #771834 #647718 #18775A
split-complementary
#2B1877 #775A18 #347718
monochromatic
#090519 #190E44 #2B1877 #3D22AA #5433D6

Accessibility & contrast

On white

14.00
#2B1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1877
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1877#FFFFFF#000000##FFFFFF
##2B18771.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1877;
/* rgb */ color: rgb(43, 24, 119);
/* oklch */ color: oklch(30.9% 0.150 282.3);
Tailwind
colors: {
  custom: {
    50: '#6f589f',
    500: '#2b1877',
    950: '#000000',
  },
}
SCSS
$custom: #2b1877;
$custom-light: #6f589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1877",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 252,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30869,
    "c": 0.14955,
    "h": 282.3
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#2B1877
secondary
#96AC3F
accent
#E93EC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1877

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

Preview Lab → · Contrast checker → · Palette generator →

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