#2E1241#2E1241

#2E1241 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.088 H 308.8°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1241
RGBrgb(46, 18, 65)
HSLhsl(276, 57%, 16%)
HSVhsv(276, 72%, 25%)
CMYKcmyk(29.2%, 72.3%, 0%, 74.5%)
CIE-LABlab(11.93, 24.19, -24.17)
CIE-LCHlch(11.93, 34.20, 315.02°)
OKLaboklab(25.12% 0.0549 -0.0683)
OKLCHoklch(25.12% 0.088 308.8)
XYZxyz(2.2970, 1.3951, 5.1483)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1241 #254112
analogous
#171241 #2E1241 #41123D
triadic
#2E1241 #412E12 #12412E
tetradic
#2E1241 #411712 #254112 #123D41
square
#2E1241 #411712 #254112 #123D41
split-complementary
#2E1241 #3D4112 #124117
monochromatic
#110718 #110718 #2E1241 #501F71 #722DA1

Accessibility & contrast

On white

16.42
#2E1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1241
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1241#FFFFFF#000000##FFFFFF
##2E12411.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#2B1C27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1241;
/* rgb */ color: rgb(46, 18, 65);
/* oklch */ color: oklch(25.1% 0.088 308.8);
Tailwind
colors: {
  custom: {
    50: '#695276',
    500: '#2e1241',
    950: '#000000',
  },
}
SCSS
$custom: #2e1241;
$custom-light: #695276;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1241",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 275.745,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25122,
    "c": 0.08763,
    "h": 308.8
  },
  "luminance": 0.01395
}

Semantic roles & 50–950 ramp

primary
#2E1241
secondary
#517A35
accent
#E04885
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1241

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

Preview Lab → · Contrast checker → · Palette generator →

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