#2B1680#2B1680

#2B1680 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 280.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2B1680
RGBrgb(43, 22, 128)
HSLhsl(252, 71%, 29%)
HSVhsv(252, 83%, 50%)
CMYKcmyk(66.4%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.56, 40.56, -55.32)
CIE-LCHlch(18.56, 68.60, 306.25°)
OKLaboklab(31.62% 0.0304 -0.1597)
OKLCHoklch(31.62% 0.163 280.8)
XYZxyz(5.1782, 2.6455, 20.6556)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1680 #6B8016
analogous
#163680 #2B1680 #601680
triadic
#2B1680 #802B16 #16802B
tetradic
#2B1680 #801636 #6B8016 #168060
square
#2B1680 #801636 #6B8016 #168060
split-complementary
#2B1680 #806016 #368016
monochromatic
#09041A #190D4C #2B1680 #3D1FB4 #5634DC

Accessibility & contrast

On white

13.73
#2B1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1680
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1680#FFFFFF#000000##FFFFFF
##2B16801.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1680;
/* rgb */ color: rgb(43, 22, 128);
/* oklch */ color: oklch(31.6% 0.163 280.8);
Tailwind
colors: {
  custom: {
    50: '#7157a6',
    500: '#2b1680',
    950: '#000000',
  },
}
SCSS
$custom: #2b1680;
$custom-light: #7157a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1680",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 251.887,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31622,
    "c": 0.16255,
    "h": 280.8
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#2B1680
secondary
#9DB53D
accent
#ED3ACA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1680

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

Preview Lab → · Contrast checker → · Palette generator →

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