#2E1A67#2E1A67

#2E1A67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.126 H 288.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1A67
RGBrgb(46, 26, 103)
HSLhsl(256, 60%, 25%)
HSVhsv(256, 75%, 40%)
CMYKcmyk(55.3%, 74.8%, 0%, 59.6%)
CIE-LABlab(16.98, 30.93, -41.78)
CIE-LCHlch(16.98, 51.98, 306.51°)
OKLaboklab(29.79% 0.0393 -0.12)
OKLCHoklch(29.79% 0.126 288.1)
XYZxyz(3.9436, 2.2987, 13.0652)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A67 #53671A
analogous
#1A2D67 #2E1A67 #541A67
triadic
#2E1A67 #672E1A #1A672E
tetradic
#2E1A67 #671A2D #53671A #1A6754
square
#2E1A67 #671A2D #53671A #1A6754
split-complementary
#2E1A67 #67541A #2D671A
monochromatic
#0B0618 #180E36 #2E1A67 #442698 #5A33C9

Accessibility & contrast

On white

14.39
#2E1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A67
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A67#FFFFFF#000000##FFFFFF
##2E1A671.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#182E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1a67;
/* rgb */ color: rgb(46, 26, 103);
/* oklch */ color: oklch(29.8% 0.126 288.1);
Tailwind
colors: {
  custom: {
    50: '#6e5893',
    500: '#2e1a67',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a67;
$custom-light: #6e5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a67",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 255.584,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29791,
    "c": 0.12629,
    "h": 288.1
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#2E1A67
secondary
#859D40
accent
#E345BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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