#2E0C4F#2E0C4F

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

Color values

HEX#2E0C4F
RGBrgb(46, 12, 79)
HSLhsl(270, 74%, 18%)
HSVhsv(270, 85%, 31%)
CMYKcmyk(41.8%, 84.8%, 0%, 69%)
CIE-LABlab(12.01, 31.23, -33.78)
CIE-LCHlch(12.01, 46.01, 312.75°)
OKLaboklab(25.57% 0.0595 -0.0965)
OKLCHoklch(25.57% 0.113 301.7)
XYZxyz(2.6691, 1.4083, 7.5268)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0C4F #2D4F0C
analogous
#0D0C4F #2E0C4F #4F0C4E
triadic
#2E0C4F #4F2E0C #0C4F2E
tetradic
#2E0C4F #4F0D0C #2D4F0C #0C4E4F
square
#2E0C4F #4F0D0C #2D4F0C #0C4E4F
split-complementary
#2E0C4F #4E4F0C #0C4F0D
monochromatic
#0F041B #0F041B #2E0C4F #4D1484 #6C1CB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E0C4F#FFFFFF#000000##FFFFFF
##2E0C4F1.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)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#271E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0c4f;
/* rgb */ color: rgb(46, 12, 79);
/* oklch */ color: oklch(25.6% 0.113 301.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f81',
    500: '#2e0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2e0c4f;
$custom-light: #6b4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0c4f",
  "rgb": {
    "r": 46,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 270.448,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25567,
    "c": 0.11331,
    "h": 301.7
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#2E0C4F
secondary
#5B8B2C
accent
#F03893
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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