#2B1684#2B1684

#2B1684 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.167 H 280.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2B1684
RGBrgb(43, 22, 132)
HSLhsl(251, 71%, 30%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(67.4%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.03, 41.79, -57.09)
CIE-LCHlch(19.03, 70.76, 306.21°)
OKLaboklab(32.08% 0.0291 -0.1648)
OKLCHoklch(32.08% 0.167 280)
XYZxyz(5.4467, 2.7529, 22.0697)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1684 #6F8416
analogous
#163884 #2B1684 #621684
triadic
#2B1684 #842B16 #16842B
tetradic
#2B1684 #841638 #6F8416 #168462
square
#2B1684 #841638 #6F8416 #168462
split-complementary
#2B1684 #846216 #388416
monochromatic
#09051B #1A0D50 #2B1684 #3C1FB8 #5737DE

Accessibility & contrast

On white

13.54
#2B1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1684
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1684#FFFFFF#000000##FFFFFF
##2B16841.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1684;
/* rgb */ color: rgb(43, 22, 132);
/* oklch */ color: oklch(32.1% 0.167 280.0);
Tailwind
colors: {
  custom: {
    50: '#7258a9',
    500: '#2b1684',
    950: '#000000',
  },
}
SCSS
$custom: #2b1684;
$custom-light: #7258a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1684",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 251.455,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32078,
    "c": 0.16737,
    "h": 280
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#2B1684
secondary
#A1B83D
accent
#EE3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1684

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

Preview Lab → · Contrast checker → · Palette generator →

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