#2E0C4A#2E0C4A

#2E0C4A is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.107 H 304.5°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#2E0C4A
RGBrgb(46, 12, 74)
HSLhsl(273, 72%, 17%)
HSVhsv(273, 84%, 29%)
CMYKcmyk(37.8%, 83.8%, 0%, 71%)
CIE-LABlab(11.54, 29.87, -31.10)
CIE-LCHlch(11.54, 43.12, 313.85°)
OKLaboklab(25.09% 0.0609 -0.0886)
OKLCHoklch(25.09% 0.107 304.5)
XYZxyz(2.4939, 1.3382, 6.6042)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0C4A #284A0C
analogous
#0F0C4A #2E0C4A #4A0C47
triadic
#2E0C4A #4A2E0C #0C4A2E
tetradic
#2E0C4A #4A0F0C #284A0C #0C474A
square
#2E0C4A #4A0F0C #284A0C #0C474A
split-complementary
#2E0C4A #474A0C #0C4A0F
monochromatic
#10041A #10041A #2E0C4A #4F157F #6F1DB3

Accessibility & contrast

On white

16.57
#2E0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0C4A
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0C4A#FFFFFF#000000##FFFFFF
##2E0C4A1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#291C2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0c4a;
/* rgb */ color: rgb(46, 12, 74);
/* oklch */ color: oklch(25.1% 0.107 304.5);
Tailwind
colors: {
  custom: {
    50: '#6a4f7d',
    500: '#2e0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #2e0c4a;
$custom-light: #6a4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0c4a",
  "rgb": {
    "r": 46,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 272.903,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25088,
    "c": 0.10747,
    "h": 304.5
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

primary
#2E0C4A
secondary
#55862C
accent
#EF398B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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