#2E0338#2E0338

#2E0338 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.4% C 0.101 H 319.1°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#2E0338
RGBrgb(46, 3, 56)
HSLhsl(289, 90%, 12%)
HSVhsv(289, 95%, 22%)
CMYKcmyk(17.9%, 94.6%, 0%, 78%)
CIE-LABlab(8.41, 29.85, -23.40)
CIE-LCHlch(8.41, 37.93, 321.90°)
OKLaboklab(22.39% 0.076 -0.0659)
OKLCHoklch(22.39% 0.101 319.1)
XYZxyz(1.8730, 0.9316, 3.8218)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0338 #0D3803
analogous
#140338 #2E0338 #380328
triadic
#2E0338 #382E03 #03382E
tetradic
#2E0338 #381403 #0D3803 #032838
square
#2E0338 #381403 #0D3803 #032838
split-complementary
#2E0338 #283803 #033814
monochromatic
#18021D #18021D #2E0338 #5E0672 #8D09AC

Accessibility & contrast

On white

17.70
#2E0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2E0338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0338
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0338#FFFFFF#000000##FFFFFF
##2E03381.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#061A37
Tritanopia (blue-blind)
#2E0E1E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2e0338;
/* rgb */ color: rgb(46, 3, 56);
/* oklch */ color: oklch(22.4% 0.101 319.1);
Tailwind
colors: {
  custom: {
    50: '#69496f',
    500: '#2e0338',
    950: '#000000',
  },
}
SCSS
$custom: #2e0338;
$custom-light: #69496f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0338",
  "rgb": {
    "r": 46,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 288.679,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22387,
    "c": 0.10057,
    "h": 319.1
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#2E0338
secondary
#2E7B1C
accent
#FF2951
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2E0338

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

Preview Lab → · Contrast checker → · Palette generator →

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