#2B0340#2B0340

#2B0340 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.6% C 0.107 H 310.0°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#2B0340
RGBrgb(43, 3, 64)
HSLhsl(279, 91%, 13%)
HSVhsv(279, 95%, 25%)
CMYKcmyk(32.8%, 95.3%, 0%, 74.9%)
CIE-LABlab(8.56, 31.12, -28.94)
CIE-LCHlch(8.56, 42.50, 317.08°)
OKLaboklab(22.61% 0.069 -0.0823)
OKLCHoklch(22.61% 0.107 310)
XYZxyz(1.9541, 0.9489, 4.9297)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0340 #184003
analogous
#0C0340 #2B0340 #400336
triadic
#2B0340 #402B03 #03402B
tetradic
#2B0340 #400C03 #184003 #033640
square
#2B0340 #400C03 #184003 #033640
split-complementary
#2B0340 #364003 #03400C
monochromatic
#14011D #14011D #2B0340 #52067A #7A08B5

Accessibility & contrast

On white

17.65
#2B0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2B0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0340
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0340#FFFFFF#000000##FFFFFF
##2B03401.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#281322
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2b0340;
/* rgb */ color: rgb(43, 3, 64);
/* oklch */ color: oklch(22.6% 0.107 310.0);
Tailwind
colors: {
  custom: {
    50: '#684975',
    500: '#2b0340',
    950: '#000000',
  },
}
SCSS
$custom: #2b0340;
$custom-light: #684975;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0340",
  "rgb": {
    "r": 43,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 279.344,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22606,
    "c": 0.10734,
    "h": 310
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#2B0340
secondary
#40821D
accent
#FF2973
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0340

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

Preview Lab → · Contrast checker → · Palette generator →

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