#2B0940#2B0940

#2B0940 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.099 H 308.6°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2B0940
RGBrgb(43, 9, 64)
HSLhsl(277, 75%, 14%)
HSVhsv(277, 86%, 25%)
CMYKcmyk(32.8%, 85.9%, 0%, 74.9%)
CIE-LABlab(9.63, 27.99, -27.19)
CIE-LCHlch(9.63, 39.02, 315.83°)
OKLaboklab(23.36% 0.0617 -0.0772)
OKLCHoklch(23.36% 0.099 308.6)
XYZxyz(2.0192, 1.0792, 4.9514)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0940 #1E4009
analogous
#100940 #2B0940 #40093A
triadic
#2B0940 #402B09 #09402B
tetradic
#2B0940 #401009 #1E4009 #093A40
square
#2B0940 #401009 #1E4009 #093A40
split-complementary
#2B0940 #3A4009 #094010
monochromatic
#12041B #12041B #2B0940 #4F1176 #7318AB

Accessibility & contrast

On white

17.27
#2B0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0940
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0940#FFFFFF#000000##FFFFFF
##2B09401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#281624
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0940;
/* rgb */ color: rgb(43, 9, 64);
/* oklch */ color: oklch(23.4% 0.099 308.6);
Tailwind
colors: {
  custom: {
    50: '#674c75',
    500: '#2b0940',
    950: '#000000',
  },
}
SCSS
$custom: #2b0940;
$custom-light: #674c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0940",
  "rgb": {
    "r": 43,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 277.091,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23357,
    "c": 0.09881,
    "h": 308.6
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#2B0940
secondary
#487E27
accent
#F2367E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0940

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

Preview Lab → · Contrast checker → · Palette generator →

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