#2E1A4C#2E1A4C

#2E1A4C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.089 H 298.8°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1A4C
RGBrgb(46, 26, 76)
HSLhsl(264, 49%, 20%)
HSVhsv(264, 66%, 30%)
CMYKcmyk(39.5%, 65.8%, 0%, 70.2%)
CIE-LABlab(14.63, 22.39, -27.47)
CIE-LCHlch(14.63, 35.44, 309.18°)
OKLaboklab(27.36% 0.0429 -0.078)
OKLCHoklch(27.36% 0.089 298.8)
XYZxyz(2.8003, 1.8414, 7.0440)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A4C #384C1A
analogous
#1A1F4C #2E1A4C #471A4C
triadic
#2E1A4C #4C2E1A #1A4C2E
tetradic
#2E1A4C #4C1A1F #384C1A #1A4C47
square
#2E1A4C #4C1A1F #384C1A #1A4C47
split-complementary
#2E1A4C #4C471A #1F4C1A
monochromatic
#0E0817 #120A1E #2E1A4C #4A2A7A #6539A7

Accessibility & contrast

On white

15.35
#2E1A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A4C
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A4C#FFFFFF#000000##FFFFFF
##2E1A4C1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#08244B
Tritanopia (blue-blind)
#272530
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1a4c;
/* rgb */ color: rgb(46, 26, 76);
/* oklch */ color: oklch(27.4% 0.089 298.8);
Tailwind
colors: {
  custom: {
    50: '#69577e',
    500: '#2e1a4c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a4c;
$custom-light: #69577e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a4c",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 264,
    "s": 49.02,
    "l": 20
  },
  "oklch": {
    "l": 0.2736,
    "c": 0.08902,
    "h": 298.8
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#2E1A4C
secondary
#688240
accent
#D94FA2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2E1A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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