#2B0840#2B0840

#2B0840 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.100 H 308.9°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#2B0840
RGBrgb(43, 8, 64)
HSLhsl(278, 78%, 14%)
HSVhsv(278, 88%, 25%)
CMYKcmyk(32.8%, 87.5%, 0%, 74.9%)
CIE-LABlab(9.46, 28.48, -27.47)
CIE-LCHlch(9.46, 39.57, 316.03°)
OKLaboklab(23.24% 0.0629 -0.078)
OKLCHoklch(23.24% 0.1 308.9)
XYZxyz(2.0083, 1.0575, 4.9478)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0840 #1D4008
analogous
#0F0840 #2B0840 #400839
triadic
#2B0840 #402B08 #08402B
tetradic
#2B0840 #400F08 #1D4008 #083940
square
#2B0840 #400F08 #1D4008 #083940
split-complementary
#2B0840 #394008 #08400F
monochromatic
#12031B #12031B #2B0840 #500F76 #7416AD

Accessibility & contrast

On white

17.34
#2B0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0840
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0840#FFFFFF#000000##FFFFFF
##2B08401.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b0840;
/* rgb */ color: rgb(43, 8, 64);
/* oklch */ color: oklch(23.2% 0.100 308.9);
Tailwind
colors: {
  custom: {
    50: '#674c75',
    500: '#2b0840',
    950: '#000000',
  },
}
SCSS
$custom: #2b0840;
$custom-light: #674c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0840",
  "rgb": {
    "r": 43,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 277.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23235,
    "c": 0.10017,
    "h": 308.9
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#2B0840
secondary
#477E25
accent
#F4347C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0840

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

Preview Lab → · Contrast checker → · Palette generator →

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