#2E1041#2E1041

#2E1041 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.091 H 309.4°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#2E1041
RGBrgb(46, 16, 65)
HSLhsl(277, 60%, 16%)
HSVhsv(277, 75%, 25%)
CMYKcmyk(29.2%, 75.4%, 0%, 74.5%)
CIE-LABlab(11.51, 25.35, -24.85)
CIE-LCHlch(11.51, 35.50, 315.57°)
OKLaboklab(24.82% 0.0577 -0.0702)
OKLCHoklch(24.82% 0.091 309.4)
XYZxyz(2.2660, 1.3331, 5.1380)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1041 #234110
analogous
#151041 #2E1041 #41103B
triadic
#2E1041 #412E10 #10412E
tetradic
#2E1041 #411510 #234110 #103B41
square
#2E1041 #411510 #234110 #103B41
split-complementary
#2E1041 #3B4110 #104115
monochromatic
#110619 #110619 #2E1041 #511C72 #7428A3

Accessibility & contrast

On white

16.58
#2E1041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E1041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1041
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1041#FFFFFF#000000##FFFFFF
##2E10411.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#2B1A26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e1041;
/* rgb */ color: rgb(46, 16, 65);
/* oklch */ color: oklch(24.8% 0.091 309.4);
Tailwind
colors: {
  custom: {
    50: '#695176',
    500: '#2e1041',
    950: '#000000',
  },
}
SCSS
$custom: #2e1041;
$custom-light: #695176;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1041",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 276.735,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24819,
    "c": 0.09092,
    "h": 309.4
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#2E1041
secondary
#4E7B32
accent
#E44482
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1041

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

Preview Lab → · Contrast checker → · Palette generator →

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