#2E1A4E#2E1A4E

#2E1A4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.092 H 297.8°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2E1A4E
RGBrgb(46, 26, 78)
HSLhsl(263, 50%, 20%)
HSVhsv(263, 67%, 31%)
CMYKcmyk(41%, 66.7%, 0%, 69.4%)
CIE-LABlab(14.79, 23.01, -28.59)
CIE-LCHlch(14.79, 36.70, 308.82°)
OKLaboklab(27.52% 0.0428 -0.0813)
OKLCHoklch(27.52% 0.092 297.8)
XYZxyz(2.8709, 1.8696, 7.4159)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A4E #3A4E1A
analogous
#1A204E #2E1A4E #481A4E
triadic
#2E1A4E #4E2E1A #1A4E2E
tetradic
#2E1A4E #4E1A20 #3A4E1A #1A4E48
square
#2E1A4E #4E1A20 #3A4E1A #1A4E48
split-complementary
#2E1A4E #4E481A #204E1A
monochromatic
#0E0817 #130B20 #2E1A4E #49297C #6439AA

Accessibility & contrast

On white

15.28
#2E1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A4E
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A4E#FFFFFF#000000##FFFFFF
##2E1A4E1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#272531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1a4e;
/* rgb */ color: rgb(46, 26, 78);
/* oklch */ color: oklch(27.5% 0.092 297.8);
Tailwind
colors: {
  custom: {
    50: '#6a5780',
    500: '#2e1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a4e;
$custom-light: #6a5780;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a4e",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 263.077,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27524,
    "c": 0.09187,
    "h": 297.8
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#2E1A4E
secondary
#6A8440
accent
#DA4EA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2E1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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