#2E1242#2E1242

#2E1242 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.089 H 308.1°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1242
RGBrgb(46, 18, 66)
HSLhsl(275, 57%, 16%)
HSVhsv(275, 73%, 26%)
CMYKcmyk(30.3%, 72.7%, 0%, 74.1%)
CIE-LABlab(12.00, 24.47, -24.75)
CIE-LCHlch(12.00, 34.80, 314.67°)
OKLaboklab(25.2% 0.0549 -0.07)
OKLCHoklch(25.2% 0.089 308.1)
XYZxyz(2.3262, 1.4068, 5.3022)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1242 #264212
analogous
#161242 #2E1242 #42123E
triadic
#2E1242 #422E12 #12422E
tetradic
#2E1242 #421612 #264212 #123E42
square
#2E1242 #421612 #264212 #123E42
split-complementary
#2E1242 #3E4212 #124216
monochromatic
#110718 #110718 #2E1242 #501F72 #712CA2

Accessibility & contrast

On white

16.39
#2E1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1242
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1242#FFFFFF#000000##FFFFFF
##2E12421.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#092041
Tritanopia (blue-blind)
#2B1C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1242;
/* rgb */ color: rgb(46, 18, 66);
/* oklch */ color: oklch(25.2% 0.089 308.1);
Tailwind
colors: {
  custom: {
    50: '#695277',
    500: '#2e1242',
    950: '#000000',
  },
}
SCSS
$custom: #2e1242;
$custom-light: #695277;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1242",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 275,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25203,
    "c": 0.08892,
    "h": 308.1
  },
  "luminance": 0.01407
}

Semantic roles & 50–950 ramp

primary
#2E1242
secondary
#527B35
accent
#E04787
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1242

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

Preview Lab → · Contrast checker → · Palette generator →

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