#2B1685#2B1685

#2B1685 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.169 H 279.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2B1685
RGBrgb(43, 22, 133)
HSLhsl(251, 72%, 30%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(67.7%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.14, 42.10, -57.53)
CIE-LCHlch(19.14, 71.29, 306.20°)
OKLaboklab(32.19% 0.0288 -0.1661)
OKLCHoklch(32.19% 0.169 279.8)
XYZxyz(5.5155, 2.7804, 22.4318)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1685 #708516
analogous
#163985 #2B1685 #621685
triadic
#2B1685 #852B16 #16852B
tetradic
#2B1685 #851639 #708516 #168562
square
#2B1685 #851639 #708516 #168562
split-complementary
#2B1685 #856216 #398516
monochromatic
#09051C #1A0D50 #2B1685 #3C1FBA #5737DE

Accessibility & contrast

On white

13.49
#2B1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1685
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1685#FFFFFF#000000##FFFFFF
##2B16851.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1685;
/* rgb */ color: rgb(43, 22, 133);
/* oklch */ color: oklch(32.2% 0.169 279.8);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2b1685',
    950: '#000000',
  },
}
SCSS
$custom: #2b1685;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1685",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 251.351,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32192,
    "c": 0.16858,
    "h": 279.8
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

primary
#2B1685
secondary
#A2B93E
accent
#EE39CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1685

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

Preview Lab → · Contrast checker → · Palette generator →

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