#2B1678#2B1678

#2B1678 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.153 H 282.5°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2B1678
RGBrgb(43, 22, 120)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(64.2%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.66, 38.08, -51.71)
CIE-LCHlch(17.66, 64.22, 306.37°)
OKLaboklab(30.73% 0.033 -0.1492)
OKLCHoklch(30.73% 0.153 282.5)
XYZxyz(4.6723, 2.4431, 17.9910)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1678 #637816
analogous
#163278 #2B1678 #5C1678
triadic
#2B1678 #782B16 #16782B
tetradic
#2B1678 #781632 #637816 #16785C
square
#2B1678 #781632 #637816 #16785C
split-complementary
#2B1678 #785C16 #327816
monochromatic
#09051A #180D44 #2B1678 #3E1FAC #542FD9

Accessibility & contrast

On white

14.11
#2B1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1678
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1678#FFFFFF#000000##FFFFFF
##2B16781.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1678;
/* rgb */ color: rgb(43, 22, 120);
/* oklch */ color: oklch(30.7% 0.153 282.5);
Tailwind
colors: {
  custom: {
    50: '#7057a0',
    500: '#2b1678',
    950: '#000000',
  },
}
SCSS
$custom: #2b1678;
$custom-light: #7057a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1678",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 252.857,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30726,
    "c": 0.15277,
    "h": 282.5
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#2B1678
secondary
#95AD3C
accent
#EC3CC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1678

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

Preview Lab → · Contrast checker → · Palette generator →

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