#2B1373#2B1373

#2B1373 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.149 H 284.2°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2B1373
RGBrgb(43, 19, 115)
HSLhsl(255, 72%, 26%)
HSVhsv(255, 83%, 45%)
CMYKcmyk(62.6%, 83.5%, 0%, 54.9%)
CIE-LABlab(16.59, 38.01, -50.26)
CIE-LCHlch(16.59, 63.02, 307.10°)
OKLaboklab(29.81% 0.0365 -0.1449)
OKLCHoklch(29.81% 0.149 284.2)
XYZxyz(4.3227, 2.2169, 16.4164)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1373 #5B7313
analogous
#132B73 #2B1373 #5B1373
triadic
#2B1373 #732B13 #13732B
tetradic
#2B1373 #73132B #5B7313 #13735B
square
#2B1373 #73132B #5B7313 #13735B
split-complementary
#2B1373 #735B13 #2B7313
monochromatic
#0A041A #170A3E #2B1373 #3F1CA8 #5325DB

Accessibility & contrast

On white

14.55
#2B1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1373
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1373#FFFFFF#000000##FFFFFF
##2B13731.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1373;
/* rgb */ color: rgb(43, 19, 115);
/* oklch */ color: oklch(29.8% 0.149 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2b1373',
    950: '#000000',
  },
}
SCSS
$custom: #2b1373;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1373",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 255,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29813,
    "c": 0.14943,
    "h": 284.2
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#2B1373
secondary
#8DAA38
accent
#EE39C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1373

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

Preview Lab → · Contrast checker → · Palette generator →

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