#2E0A4E#2E0A4E

#2E0A4E is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.3% C 0.114 H 302.6°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#2E0A4E
RGBrgb(46, 10, 78)
HSLhsl(272, 77%, 17%)
HSVhsv(272, 87%, 31%)
CMYKcmyk(41%, 87.2%, 0%, 69.4%)
CIE-LABlab(11.61, 31.85, -33.76)
CIE-LCHlch(11.61, 46.41, 313.34°)
OKLaboklab(25.25% 0.0616 -0.0964)
OKLCHoklch(25.25% 0.114 302.6)
XYZxyz(2.6101, 1.3480, 7.3289)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0A4E #2A4E0A
analogous
#0C0A4E #2E0A4E #4E0A4C
triadic
#2E0A4E #4E2E0A #0A4E2E
tetradic
#2E0A4E #4E0C0A #2A4E0A #0A4C4E
square
#2E0A4E #4E0C0A #2A4E0A #0A4C4E
split-complementary
#2E0A4E #4C4E0A #0A4E0C
monochromatic
#10031B #10031B #2E0A4E #4E1184 #6E18BA

Accessibility & contrast

On white

16.54
#2E0A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0A4E
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0A4E#FFFFFF#000000##FFFFFF
##2E0A4E1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#271C2C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e0a4e;
/* rgb */ color: rgb(46, 10, 78);
/* oklch */ color: oklch(25.3% 0.114 302.6);
Tailwind
colors: {
  custom: {
    50: '#6b4e80',
    500: '#2e0a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2e0a4e;
$custom-light: #6b4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0a4e",
  "rgb": {
    "r": 46,
    "g": 10,
    "b": 78
  },
  "hsl": {
    "h": 271.765,
    "s": 77.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25253,
    "c": 0.11439,
    "h": 302.6
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#2E0A4E
secondary
#578B29
accent
#F4348E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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