#2B0942#2B0942

#2B0942 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.101 H 307.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#2B0942
RGBrgb(43, 9, 66)
HSLhsl(276, 76%, 15%)
HSVhsv(276, 86%, 26%)
CMYKcmyk(34.8%, 86.4%, 0%, 74.1%)
CIE-LABlab(9.82, 28.51, -28.31)
CIE-LCHlch(9.82, 40.18, 315.20°)
OKLaboklab(23.54% 0.0612 -0.0805)
OKLCHoklch(23.54% 0.101 307.2)
XYZxyz(2.0771, 1.1023, 5.2565)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0942 #204209
analogous
#0E0942 #2B0942 #42093D
triadic
#2B0942 #422B09 #09422B
tetradic
#2B0942 #420E09 #204209 #093D42
square
#2B0942 #420E09 #204209 #093D42
split-complementary
#2B0942 #3D4209 #09420E
monochromatic
#12041B #12041B #2B0942 #4E1078 #7118AE

Accessibility & contrast

On white

17.21
#2B0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0942
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0942#FFFFFF#000000##FFFFFF
##2B09421.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#271725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0942;
/* rgb */ color: rgb(43, 9, 66);
/* oklch */ color: oklch(23.5% 0.101 307.2);
Tailwind
colors: {
  custom: {
    50: '#674c77',
    500: '#2b0942',
    950: '#000000',
  },
}
SCSS
$custom: #2b0942;
$custom-light: #674c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0942",
  "rgb": {
    "r": 43,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 275.789,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23542,
    "c": 0.10111,
    "h": 307.2
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#2B0942
secondary
#4B8027
accent
#F33582
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0942

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

Preview Lab → · Contrast checker → · Palette generator →

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