#2E1042#2E1042

#2E1042 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.092 H 308.7°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1042
RGBrgb(46, 16, 66)
HSLhsl(276, 61%, 16%)
HSVhsv(276, 76%, 26%)
CMYKcmyk(30.3%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.59, 25.62, -25.43)
CIE-LCHlch(11.59, 36.09, 315.22°)
OKLaboklab(24.9% 0.0576 -0.0719)
OKLCHoklch(24.9% 0.092 308.7)
XYZxyz(2.2952, 1.3448, 5.2919)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1042 #244210
analogous
#151042 #2E1042 #42103D
triadic
#2E1042 #422E10 #10422E
tetradic
#2E1042 #421510 #244210 #103D42
square
#2E1042 #421510 #244210 #103D42
split-complementary
#2E1042 #3D4210 #104215
monochromatic
#110619 #110619 #2E1042 #501C73 #7328A5

Accessibility & contrast

On white

16.55
#2E1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1042
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1042#FFFFFF#000000##FFFFFF
##2E10421.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#2B1B27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1042;
/* rgb */ color: rgb(46, 16, 66);
/* oklch */ color: oklch(24.9% 0.092 308.7);
Tailwind
colors: {
  custom: {
    50: '#695177',
    500: '#2e1042',
    950: '#000000',
  },
}
SCSS
$custom: #2e1042;
$custom-light: #695177;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1042",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 276,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24903,
    "c": 0.09216,
    "h": 308.7
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#2E1042
secondary
#4F7C32
accent
#E44484
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1042

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

Preview Lab → · Contrast checker → · Palette generator →

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