#2B0842#2B0842

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

Color values

HEX#2B0842
RGBrgb(43, 8, 66)
HSLhsl(276, 78%, 15%)
HSVhsv(276, 88%, 26%)
CMYKcmyk(34.8%, 87.9%, 0%, 74.1%)
CIE-LABlab(9.65, 29.01, -28.59)
CIE-LCHlch(9.65, 40.73, 315.41°)
OKLaboklab(23.42% 0.0623 -0.0813)
OKLCHoklch(23.42% 0.102 307.5)
XYZxyz(2.0663, 1.0806, 5.2529)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0842 #1F4208
analogous
#0E0842 #2B0842 #42083C
triadic
#2B0842 #422B08 #08422B
tetradic
#2B0842 #420E08 #1F4208 #083C42
square
#2B0842 #420E08 #1F4208 #083C42
split-complementary
#2B0842 #3C4208 #08420E
monochromatic
#12031B #12031B #2B0842 #4F0F79 #7215AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B0842#FFFFFF#000000##FFFFFF
##2B08421.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)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#271725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0842;
/* rgb */ color: rgb(43, 8, 66);
/* oklch */ color: oklch(23.4% 0.102 307.5);
Tailwind
colors: {
  custom: {
    50: '#684c77',
    500: '#2b0842',
    950: '#000000',
  },
}
SCSS
$custom: #2b0842;
$custom-light: #684c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0842",
  "rgb": {
    "r": 43,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 276.207,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23422,
    "c": 0.10242,
    "h": 307.5
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#2B0842
secondary
#498025
accent
#F53380
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0842

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

Preview Lab → · Contrast checker → · Palette generator →

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