#2B1681#2B1681

#2B1681 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.164 H 280.6°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#2B1681
RGBrgb(43, 22, 129)
HSLhsl(252, 71%, 30%)
HSVhsv(252, 83%, 51%)
CMYKcmyk(66.7%, 82.9%, 0%, 49.4%)
CIE-LABlab(18.68, 40.87, -55.77)
CIE-LCHlch(18.68, 69.14, 306.24°)
OKLaboklab(31.74% 0.0301 -0.161)
OKLCHoklch(31.74% 0.164 280.6)
XYZxyz(5.2444, 2.6720, 21.0040)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1681 #6C8116
analogous
#163681 #2B1681 #611681
triadic
#2B1681 #812B16 #16812B
tetradic
#2B1681 #811636 #6C8116 #168161
square
#2B1681 #811636 #6C8116 #168161
split-complementary
#2B1681 #816116 #368116
monochromatic
#09041A #1A0D4D #2B1681 #3C1FB5 #5635DD

Accessibility & contrast

On white

13.69
#2B1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1681
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1681#FFFFFF#000000##FFFFFF
##2B16811.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1681;
/* rgb */ color: rgb(43, 22, 129);
/* oklch */ color: oklch(31.7% 0.164 280.6);
Tailwind
colors: {
  custom: {
    50: '#7257a7',
    500: '#2b1681',
    950: '#000000',
  },
}
SCSS
$custom: #2b1681;
$custom-light: #7257a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1681",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 251.776,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31736,
    "c": 0.16376,
    "h": 280.6
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#2B1681
secondary
#9EB63D
accent
#EE3ACA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1681

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

Preview Lab → · Contrast checker → · Palette generator →

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