#2B0338#2B0338

#2B0338 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.099 H 316.1°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#2B0338
RGBrgb(43, 3, 56)
HSLhsl(285, 90%, 12%)
HSVhsv(285, 95%, 22%)
CMYKcmyk(23.2%, 94.6%, 0%, 78%)
CIE-LABlab(7.81, 29.22, -24.40)
CIE-LCHlch(7.81, 38.07, 320.14°)
OKLaboklab(21.85% 0.0715 -0.0689)
OKLCHoklch(21.85% 0.099 316.1)
XYZxyz(1.7425, 0.8643, 3.8157)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0338 #103803
analogous
#110338 #2B0338 #38032B
triadic
#2B0338 #382B03 #03382B
tetradic
#2B0338 #381103 #103803 #032B38
square
#2B0338 #381103 #103803 #032B38
split-complementary
#2B0338 #2B3803 #033811
monochromatic
#16021D #16021D #2B0338 #580672 #8409AC

Accessibility & contrast

On white

17.91
#2B0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2B0338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0338
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0338#FFFFFF#000000##FFFFFF
##2B03381.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#021837
Tritanopia (blue-blind)
#2A0F1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b0338;
/* rgb */ color: rgb(43, 3, 56);
/* oklch */ color: oklch(21.8% 0.099 316.1);
Tailwind
colors: {
  custom: {
    50: '#67486f',
    500: '#2b0338',
    950: '#000000',
  },
}
SCSS
$custom: #2b0338;
$custom-light: #67486f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0338",
  "rgb": {
    "r": 43,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 285.283,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21849,
    "c": 0.09933,
    "h": 316.1
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#2B0338
secondary
#337B1C
accent
#FF295D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0338

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

Preview Lab → · Contrast checker → · Palette generator →

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